Commit 815e9114 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛 Committed by Albert Astals Cid
Browse files

Improve the Database Browser tab

 * Don't put the `Refresh` button waaaaaaaaaaaaay over there.
 * Fetch the selected table right away.

(cherry picked from commit 5cc54fcc)
parent 9c761822
Pipeline #95344 canceled with stage
......@@ -27,6 +27,7 @@ DbBrowser::DbBrowser(QWidget *parent)
ui.refreshButton->setIcon(QIcon::fromTheme(QStringLiteral("view-refresh")));
connect(ui.refreshButton, &QPushButton::clicked, this, &DbBrowser::refreshClicked);
connect(ui.tableBox, &KComboBox::currentTextChanged, this, &DbBrowser::refreshClicked);
}
void DbBrowser::refreshClicked()
......
......@@ -15,7 +15,7 @@
<item>
<widget class="KComboBox" name="tableBox" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
......@@ -29,6 +29,13 @@
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</spacer>
</item>
</layout>
</item>
<item>
......
Supports Markdown
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