Skip to content
Permalink
Browse files

set standard icon to selectFolderToolButton.

  • Loading branch information...
haraki committed Jun 14, 2019
1 parent 2a73c2f commit ba32c1ebe6d413e84b8e694f4632e9ca1f8daf67
Showing with 6 additions and 4 deletions.
  1. +4 −2 folderform.cpp
  2. +1 −1 folderform.h
  3. +1 −1 folderform.ui
@@ -25,6 +25,8 @@ FolderForm::FolderForm(FilterFlags filterFlags,
{
ui->setupUi(this);

ui->selectFolderToolButton->setIcon(QApplication::style()->standardIcon(QStyle::SP_FileDialogStart));

m_folderModel->setReadOnly(true);
m_folderModel->setDynamicSortFilter(true);
m_folderModel->setSortLocaleAware(true);
@@ -456,9 +458,9 @@ int FolderForm::getTotalColumnWidth(int withOutColumn)
return totalWidth;
}

void FolderForm::on_selectFolderButton_clicked()
void FolderForm::on_selectFolderToolButton_clicked()
{
qDebug() << "FolderForm::on_selectFolderButton_clicked()";
qDebug() << "FolderForm::on_selectFolderToolButton_clicked()";

onSelectDir();
}
@@ -86,7 +86,7 @@ protected Q_SLOTS:
void onLayoutAboutToBeChanged(const QList<QPersistentModelIndex>& parents = QList<QPersistentModelIndex>(), QAbstractItemModel::LayoutChangeHint hint = QAbstractItemModel::NoLayoutChangeHint);

private Q_SLOTS:
void on_selectFolderButton_clicked();
void on_selectFolderToolButton_clicked();
void on_bookmarkToolButton_toggled(bool checked);

void emitCurrentChanged(const QFileInfo& newFileInfo, const QFileInfo& oldFileInfo);
@@ -63,7 +63,7 @@
</widget>
</item>
<item>
<widget class="QToolButton" name="selectFolderButton">
<widget class="QToolButton" name="selectFolderToolButton">
<property name="text">
<string>...</string>
</property>

0 comments on commit ba32c1e

Please sign in to comment.
You can’t perform that action at this time.