Commit d1b346f6 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Patch review tool view: use consistently QToolButton

GIT_SILENT
parent 804e345e
......@@ -73,10 +73,13 @@
</spacer>
</item>
<item>
<widget class="QPushButton" name="updateButton">
<widget class="QToolButton" name="updateButton">
<property name="text">
<string>Update</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>
</property>
<property name="icon">
<iconset theme="view-refresh">
<normaloff>.</normaloff>.</iconset>
......@@ -84,10 +87,13 @@
</widget>
</item>
<item>
<widget class="QPushButton" name="testsButton">
<widget class="QToolButton" name="testsButton">
<property name="text">
<string>Run Tests</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>
</property>
<property name="icon">
<iconset theme="preflight-verifier">
<normaloff>.</normaloff>.</iconset>
......@@ -131,10 +137,13 @@
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelReview">
<widget class="QToolButton" name="cancelReview">
<property name="text">
<string>Cancel Review</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>
</property>
<property name="icon">
<iconset theme="dialog-cancel">
<normaloff>.</normaloff>.</iconset>
......
......@@ -249,14 +249,14 @@ void PatchReviewToolView::showEditDialog() {
connect( m_editPatch.nextFile, &QToolButton::clicked, this, &PatchReviewToolView::nextFile );
connect( m_editPatch.filesList, &QTreeView::activated , this, &PatchReviewToolView::fileDoubleClicked );
connect( m_editPatch.cancelReview, &QPushButton::clicked, m_plugin, &PatchReviewPlugin::cancelReview );
connect( m_editPatch.cancelReview, &QToolButton::clicked, m_plugin, &PatchReviewPlugin::cancelReview );
//connect( m_editPatch.cancelButton, SIGNAL(pressed()), this, SLOT(slotEditCancel()) );
//connect( this, SIGNAL(finished(int)), this, SLOT(slotEditDialogFinished(int)) );
connect( m_editPatch.updateButton, &QPushButton::clicked, m_plugin, &PatchReviewPlugin::forceUpdate );
connect( m_editPatch.updateButton, &QToolButton::clicked, m_plugin, &PatchReviewPlugin::forceUpdate );
connect( m_editPatch.testsButton, &QPushButton::clicked, this, &PatchReviewToolView::runTests );
connect( m_editPatch.testsButton, &QToolButton::clicked, this, &PatchReviewToolView::runTests );
m_selectAllAction = new QAction(QIcon::fromTheme(QStringLiteral("edit-select-all")), i18n("Select All"), this );
connect( m_selectAllAction, &QAction::triggered, this, &PatchReviewToolView::selectAll );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment