mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-26 13:47:46 +00:00
Add "What's This?" hints for some widgets in the Excel Editor
This commit is contained in:
parent
fbc1ff134c
commit
6e25f0fd69
2 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,7 @@ MainWindow::MainWindow(GameData *data)
|
|||
dummyWidget->addWidget(listWidget);
|
||||
|
||||
auto exdPart = new EXDPart(data);
|
||||
exdPart->setWhatsThis(i18nc("@info:whatsthis", "Contents of an Excel sheet. If it's made up of multiple pages, select the page from the tabs below."));
|
||||
dummyWidget->addWidget(exdPart);
|
||||
|
||||
connect(listWidget, &SheetListWidget::sheetSelected, this, [this, data, exdPart](const QString &name) {
|
||||
|
|
|
@ -23,6 +23,7 @@ SheetListWidget::SheetListWidget(GameData *data, QWidget *parent)
|
|||
searchModel->setFilterCaseSensitivity(Qt::CaseSensitivity::CaseInsensitive);
|
||||
|
||||
auto searchEdit = new QLineEdit();
|
||||
searchEdit->setWhatsThis(i18nc("@info:whatsthis", "Search box for Excel sheet names."));
|
||||
searchEdit->setPlaceholderText(i18nc("@info:placeholder", "Search…"));
|
||||
searchEdit->setClearButtonEnabled(true);
|
||||
searchEdit->setProperty("_breeze_borders_sides", QVariant::fromValue(QFlags{Qt::BottomEdge}));
|
||||
|
@ -44,6 +45,7 @@ SheetListWidget::SheetListWidget(GameData *data, QWidget *parent)
|
|||
originalModel->setStringList(list);
|
||||
|
||||
listWidget = new QListView();
|
||||
listWidget->setWhatsThis(i18nc("@info:whatsthis", "A list of Excel sheet names. Select one to view it's contents."));
|
||||
listWidget->setModel(searchModel);
|
||||
|
||||
connect(listWidget, &QListView::clicked, [this, searchModel](const QModelIndex &index) {
|
||||
|
|
Loading…
Add table
Reference in a new issue