Skip to content

Commit

Permalink
Apply experimental labels to package manager and exporter consistently (
Browse files Browse the repository at this point in the history
Mudlet#5226)

* Apply experimental labels to package manager and exporter consistently

* Shorten name
  • Loading branch information
vadi2 authored May 17, 2021
1 parent 9d68a07 commit d471f49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/dlgPackageManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dlgPackageManager::dlgPackageManager(QWidget* parent, Host* pHost)
connect(mPackageTable, &QTableWidget::currentItemChanged, this, &dlgPackageManager::slot_item_clicked);
connect(mPackageTable, &QTableWidget::itemSelectionChanged, this, &dlgPackageManager::slot_toggle_remove_button);

setWindowTitle(tr("Package Manager - %1").arg(mpHost->getName()));
setWindowTitle(tr("Package Manager (experimental) - %1").arg(mpHost->getName()));
mDetailsTable->setEditTriggers(QAbstractItemView::NoEditTriggers);
mDetailsTable->setFocusPolicy(Qt::NoFocus);
mDetailsTable->setSelectionMode(QAbstractItemView::NoSelection);
Expand Down
8 changes: 4 additions & 4 deletions src/mudlet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,23 +437,23 @@ mudlet::mudlet()
mpMainToolBar->widgetForAction(mpActionNotes)->setObjectName(mpActionNotes->objectName());

mpButtonPackageManagers = new QToolButton(this);
mpButtonPackageManagers->setText(tr("Package Manager"));
mpButtonPackageManagers->setText(tr("Packages (exp.)"));
mpButtonPackageManagers->setObjectName(QStringLiteral("package_manager"));
mpButtonPackageManagers->setContextMenuPolicy(Qt::ActionsContextMenu);
mpButtonPackageManagers->setPopupMode(QToolButton::MenuButtonPopup);
mpButtonPackageManagers->setAutoRaise(true);
mpMainToolBar->addWidget(mpButtonPackageManagers);

mpActionPackageManager = new QAction(tr("Package Manager"), this);
mpActionPackageManager = new QAction(tr("Package Manager (experimental)"), this);
mpActionPackageManager->setIcon(QIcon(QStringLiteral(":/icons/package-manager.png")));
mpActionPackageManager->setIconText(tr("Package Manager"));
mpActionPackageManager->setIconText(tr("Packages (exp.)", "exp. stands for experimental; shortened so it doesn't make buttons huge in the main interface"));
mpActionPackageManager->setObjectName(QStringLiteral("package_manager"));

mpActionModuleManager = new QAction(tr("Module Manager"), this);
mpActionModuleManager->setIcon(QIcon(QStringLiteral(":/icons/module-manager.png")));
mpActionModuleManager->setObjectName(QStringLiteral("module_manager"));

mpActionPackageExporter = new QAction(tr("Package Exporter"), this);
mpActionPackageExporter = new QAction(tr("Package Exporter (experimental)"), this);
mpActionPackageExporter->setIcon(QIcon(QStringLiteral(":/icons/package-exporter.png")));
mpActionPackageExporter->setObjectName(QStringLiteral("package_exporter"));

Expand Down
2 changes: 1 addition & 1 deletion src/ui/dlgPackageExporter.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</size>
</property>
<property name="windowTitle">
<string>Package Exporter</string>
<string>Package Exporter (experimental)</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
Expand Down

0 comments on commit d471f49

Please sign in to comment.