mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
Qt: Add tooltips to Virtual File System buttons
This commit is contained in:
parent
bdb5115c7f
commit
f92794360d
@ -31,11 +31,13 @@ vfs_dialog_tab::vfs_dialog_tab(vfs_settings_info settingsInfo, std::shared_ptr<g
|
|||||||
|
|
||||||
m_dirList->setMinimumWidth(m_dirList->sizeHintForColumn(0));
|
m_dirList->setMinimumWidth(m_dirList->sizeHintForColumn(0));
|
||||||
|
|
||||||
QPushButton* addDir = new QPushButton(tr("+"));
|
QPushButton* addDir = new QPushButton(QStringLiteral("+"));
|
||||||
|
addDir->setToolTip(tr("Add new directory"));
|
||||||
addDir->setFixedWidth(addDir->sizeHint().height()); // Make button square
|
addDir->setFixedWidth(addDir->sizeHint().height()); // Make button square
|
||||||
connect(addDir, &QAbstractButton::clicked, this, &vfs_dialog_tab::AddNewDirectory);
|
connect(addDir, &QAbstractButton::clicked, this, &vfs_dialog_tab::AddNewDirectory);
|
||||||
|
|
||||||
QPushButton* removeDir = new QPushButton(tr("-"));
|
QPushButton* removeDir = new QPushButton(QStringLiteral("-"));
|
||||||
|
removeDir->setToolTip(tr("Remove directory"));
|
||||||
removeDir->setFixedWidth(removeDir->sizeHint().height()); // Make button square
|
removeDir->setFixedWidth(removeDir->sizeHint().height()); // Make button square
|
||||||
removeDir->setEnabled(false);
|
removeDir->setEnabled(false);
|
||||||
connect(removeDir, &QAbstractButton::clicked, this, &vfs_dialog_tab::RemoveDirectory);
|
connect(removeDir, &QAbstractButton::clicked, this, &vfs_dialog_tab::RemoveDirectory);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user