diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-06-24 19:16:48 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-24 19:16:48 +0000 |
| commit | 966052b328b5efcf260580c91136368c003b59b6 (patch) | |
| tree | 45c2fc8f3f91fd7f32dd0d06c2850276b6f85391 /utils/themeeditor/gui/devicestate.cpp | |
| parent | c9bbff571b726c30d19aff824872f6193d7ae5d2 (diff) | |
| download | rockbox-966052b328b5efcf260580c91136368c003b59b6.zip rockbox-966052b328b5efcf260580c91136368c003b59b6.tar.gz rockbox-966052b328b5efcf260580c91136368c003b59b6.tar.bz2 rockbox-966052b328b5efcf260580c91136368c003b59b6.tar.xz | |
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
Diffstat (limited to 'utils/themeeditor/gui/devicestate.cpp')
| -rw-r--r-- | utils/themeeditor/gui/devicestate.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/themeeditor/gui/devicestate.cpp b/utils/themeeditor/gui/devicestate.cpp index b17dcaf..ef9d666 100644 --- a/utils/themeeditor/gui/devicestate.cpp +++ b/utils/themeeditor/gui/devicestate.cpp @@ -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())); } |