disable actions and make them accesible
This commit is contained in:
parent
ab5798e09e
commit
93214a2fb0
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user