diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-11 18:30:56 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-11 18:48:06 +0200 |
commit | 93214a2fb041769e2c9f783ec3d187b3d74d3f7c (patch) | |
tree | 42f1cf339e6c418837f0101001aa022dd507d655 | |
parent | ab5798e09efe525d51827773f895c6fd2e9a2d0c (diff) | |
download | nextpnr-93214a2fb041769e2c9f783ec3d187b3d74d3f7c.tar.gz nextpnr-93214a2fb041769e2c9f783ec3d187b3d74d3f7c.tar.bz2 nextpnr-93214a2fb041769e2c9f783ec3d187b3d74d3f7c.zip |
disable actions and make them accesible
-rw-r--r-- | gui/designwidget.cc | 12 | ||||
-rw-r--r-- | gui/designwidget.h | 5 |
2 files changed, 13 insertions, 4 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index 027512af..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);
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
|