diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-07-11 19:02:58 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-07-11 19:02:58 +0200 |
commit | b58d665b43dae745b6aee4c56106a45f48379220 (patch) | |
tree | 41fc358574e658eab23bbb51197ff8850643cce9 /gui | |
parent | 33e592e55e30e097db08218d4dc0888c6058f5f2 (diff) | |
parent | 93214a2fb041769e2c9f783ec3d187b3d74d3f7c (diff) | |
download | nextpnr-b58d665b43dae745b6aee4c56106a45f48379220.tar.gz nextpnr-b58d665b43dae745b6aee4c56106a45f48379220.tar.bz2 nextpnr-b58d665b43dae745b6aee4c56106a45f48379220.zip |
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'gui')
-rw-r--r-- | gui/designwidget.cc | 16 | ||||
-rw-r--r-- | gui/designwidget.h | 5 |
2 files changed, 16 insertions, 5 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index 98fd3f30..14de974e 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -96,21 +96,25 @@ DesignWidget::DesignWidget(QWidget *parent) : QWidget(parent), ctx(nullptr), net lineEdit->addAction(searchIcon, QLineEdit::LeadingPosition);
lineEdit->setPlaceholderText("Search...");
- QAction *actionFirst = new QAction("", this);
+ actionFirst = new QAction("", this);
QIcon iconFirst(QStringLiteral(":/icons/resources/resultset_first.png"));
actionFirst->setIcon(iconFirst);
+ actionFirst->setEnabled(false);
- QAction *actionPrev = new QAction("", this);
+ actionPrev = new QAction("", this);
QIcon iconPrev(QStringLiteral(":/icons/resources/resultset_previous.png"));
actionPrev->setIcon(iconPrev);
+ actionPrev->setEnabled(false);
- QAction *actionNext = new QAction("", this);
+ actionNext = new QAction("", this);
QIcon iconNext(QStringLiteral(":/icons/resources/resultset_next.png"));
actionNext->setIcon(iconNext);
+ actionNext->setEnabled(false);
- QAction *actionLast = new QAction("", this);
+ actionLast = new QAction("", this);
QIcon iconLast(QStringLiteral(":/icons/resources/resultset_last.png"));
actionLast->setIcon(iconLast);
+ actionLast->setEnabled(false);
QToolBar *toolbar = new QToolBar();
toolbar->addAction(actionFirst);
@@ -130,13 +134,15 @@ DesignWidget::DesignWidget(QWidget *parent) : QWidget(parent), ctx(nullptr), net QHBoxLayout *hbox = new QHBoxLayout;
hbox->setAlignment(Qt::AlignCenter);
toolbarWidget->setLayout(hbox);
+ hbox->setSpacing(0);
+ hbox->setContentsMargins(0, 0, 0, 0);
hbox->addWidget(toolbar);
QWidget *btmWidget = new QWidget();
QVBoxLayout *vbox2 = new QVBoxLayout();
btmWidget->setLayout(vbox2);
- vbox2->setSpacing(5);
+ vbox2->setSpacing(0);
vbox2->setContentsMargins(0, 0, 0, 0);
vbox2->addWidget(toolbarWidget);
vbox2->addWidget(propertyEditor);
diff --git a/gui/designwidget.h b/gui/designwidget.h index 7785513a..ce0220dd 100644 --- a/gui/designwidget.h +++ b/gui/designwidget.h @@ -68,6 +68,11 @@ class DesignWidget : public QWidget QMap<QString, QtProperty *> idToProperty;
QTreeWidgetItem *nets_root;
QTreeWidgetItem *cells_root;
+
+ QAction *actionFirst;
+ QAction *actionPrev;
+ QAction *actionNext;
+ QAction *actionLast;
};
NEXTPNR_NAMESPACE_END
|