From 966052b328b5efcf260580c91136368c003b59b6 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Thu, 24 Jun 2010 19:16:48 +0000 Subject: 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 --- utils/themeeditor/gui/devicestate.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'utils/themeeditor/gui/devicestate.cpp') 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 #include #include #include #include +#include +#include +#include + 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(Text, temp)); + temp->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, + QSizePolicy::Fixed)); + QObject::connect(temp, SIGNAL(textChanged(QString)), this, SLOT(input())); } -- cgit v1.1