Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,23 @@ void MainWindow::init()
ui->actionCloseProject->setShortcuts({QKeySequence(tr("Ctrl+Shift+W")), QKeySequence(tr("Ctrl+Shift+F4"))});
addShortcutsTooltip(ui->fileCloseAction);

// Increase the visibility of some tooltips
foreach(QObject* obj, ui->scrollAreaWidgetContents->children()) {
QLabel* label = qobject_cast<QLabel*>(obj);
if (label) {
QString tip1 = label->toolTip();
if (tip1.contains("PRAGMA ")) {
// label->setCursor(Qt::WhatsThisCursor); // This doesn't work
label->setToolTipDuration(3000);
label->setStatusTip(tip1);
}
QString tip2 = label->statusTip();
if (!tip2.isEmpty() && label->toolTip().isEmpty()) {
label->setToolTip(tip2);
}
}
}

// Load all settings
reloadSettings();

Expand Down