forked from len0rd/rockbox
Theme Editor: Removed dependency on lingering file from devicestate.cpp, fixed formatting in device state panel, working on tag list for device panel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27116 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c9bbff571b
commit
966052b328
2 changed files with 28 additions and 12 deletions
|
@ -20,13 +20,16 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "devicestate.h"
|
||||
#include "ui_devicestate.h"
|
||||
|
||||
#include <QScrollArea>
|
||||
#include <QFile>
|
||||
#include <QCheckBox>
|
||||
#include <QSpinBox>
|
||||
#include <QComboBox>
|
||||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
|
||||
|
||||
DeviceState::DeviceState(QWidget *parent) :
|
||||
QWidget(parent), tabs(this)
|
||||
|
@ -83,7 +86,8 @@ DeviceState::DeviceState(QWidget *parent) :
|
|||
|
||||
subLayout = new QHBoxLayout();
|
||||
if(type != "check")
|
||||
subLayout->addWidget(new QLabel(elements[1].trimmed(), currentArea));
|
||||
subLayout->addWidget(new QLabel(elements[1].trimmed(),
|
||||
currentArea));
|
||||
layout->addLayout(subLayout);
|
||||
|
||||
|
||||
|
@ -94,6 +98,9 @@ DeviceState::DeviceState(QWidget *parent) :
|
|||
subLayout->addWidget(temp);
|
||||
inputs.insert(tag, QPair<InputType, QWidget*>(Text, temp));
|
||||
|
||||
temp->setSizePolicy(QSizePolicy(QSizePolicy::Preferred,
|
||||
QSizePolicy::Fixed));
|
||||
|
||||
QObject::connect(temp, SIGNAL(textChanged(QString)),
|
||||
this, SLOT(input()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue