diff options
author | Stijn Buys <ingar@osirion.org> | 2012-03-11 10:25:06 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-03-11 10:25:06 +0000 |
commit | f46146993b50ca5afc802288deeb5bd72a176d9a (patch) | |
tree | 6b1cde69c854c18ec885562bd97f6c5908cdc0ad /src/sidebar.cc | |
parent | 7c17b396474fc3783664dbd4da86548389825ea3 (diff) |
Added zone properties button.
Diffstat (limited to 'src/sidebar.cc')
-rw-r--r-- | src/sidebar.cc | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/sidebar.cc b/src/sidebar.cc index 9299f40..3093fc1 100644 --- a/src/sidebar.cc +++ b/src/sidebar.cc @@ -8,6 +8,7 @@ #include <QComboBox> #include <QLabel> #include <QLineEdit> +#include <QPushButton> #include <QTextEdit> #include <QVBoxLayout> #include <QSplitter> @@ -23,13 +24,22 @@ SideBar::SideBar(QWidget *parent) : QWidget(parent) // global vertical layout QVBoxLayout *box_global = new QVBoxLayout(); - // zone name + // zone name and properties button + QHBoxLayout *box_zone = new QHBoxLayout(); + label_zone = new QLabel(tr("Zone Name")); label_zone->setAlignment(Qt::AlignHCenter); - box_global->addWidget(label_zone); + button_zone = new QPushButton(tr("...")); + + box_zone->addWidget(label_zone, 1); + box_zone->addWidget(button_zone); + + box_global->addLayout(box_zone); box_global->addSpacing(16); + connect(button_zone, SIGNAL(clicked()), this, SLOT(zonePropertiesButtonClicked())); + // entity type QHBoxLayout *box_entitytype = new QHBoxLayout(); QLabel *label_entitytype = new QLabel(tr("type")); @@ -194,6 +204,10 @@ SideBar::SideBar(QWidget *parent) : QWidget(parent) setProperties(0); } +void SideBar::zonePropertiesButtonClicked() +{ + emit(zonePropertiesClicked()); +} void SideBar::updateEntityType(const QString &value) { |