Skip to content

Commit

Permalink
Grey out filedialog icon when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Feb 28, 2024
1 parent 9357921 commit 6099fc6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/simulator/waveform_viewer/src/wizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,13 @@ namespace hal {
hlay->addWidget(mEditFilename);

mButFiledialog = new QPushButton(this);
mButFiledialog->setIcon(gui_utility::getStyledSvgIcon("all->#3192C5", ":/icons/folder"));
QSize iconSize(17,17);
QIcon iconFdAct = gui_utility::getStyledSvgIcon("all->#3192C5", ":/icons/folder");
QIcon iconFdDis = gui_utility::getStyledSvgIcon("all->#515050", ":/icons/folder");
QIcon iconFd;
iconFd.addPixmap(iconFdAct.pixmap(iconSize),QIcon::Normal);
iconFd.addPixmap(iconFdDis.pixmap(iconSize),QIcon::Disabled);
mButFiledialog->setIcon(iconFd);
mButFiledialog->setIconSize(QSize(17, 17));
connect(mButFiledialog, &QPushButton::clicked, this, &PageInputData::openFileBrowser);

Expand Down

0 comments on commit 6099fc6

Please sign in to comment.