There was an error while loading. Please reload this page.
1 parent 3dddb48 commit be22506Copy full SHA for be22506
1 file changed
src/mainwindow.cpp
@@ -180,6 +180,21 @@ void MainWindow::setup()
180
w->setVisible(false);
181
w->setChecked(false);
182
}
183
+ // Make legend buttons non-interactive (avoid hover/click hints)
184
+ const QList<QAbstractButton *> legendButtons {
185
+ ui->iconInstalledPackagesRepo,
186
+ ui->iconUpgradableRepo,
187
+ ui->iconInstalledPackages_2,
188
+ ui->iconUpgradable_2,
189
+ ui->iconInstalledPackages_4,
190
+ };
191
+ for (auto *button : legendButtons) {
192
+ if (!button) {
193
+ continue;
194
+ }
195
+ button->setFocusPolicy(Qt::NoFocus);
196
+ button->setAttribute(Qt::WA_TransparentForMouseEvents, true);
197
198
199
// Install custom header views with checkbox in column 0 (TreeCol::Check)
200
headerEnabled = new CheckableHeaderView(Qt::Horizontal, ui->treeEnabled);
0 commit comments