diff options
author | Nao Pross <np@0hm.ch> | 2020-12-24 17:23:14 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2020-12-24 17:23:14 +0100 |
commit | 04de0fce0ac6758fd9684b0bf79dc6950c5d448c (patch) | |
tree | 0aa8e206aaf085e479c1a0d3ebcf396e989ef8fa | |
parent | Add Windows path for config and log files (diff) | |
download | Muddle-04de0fce0ac6758fd9684b0bf79dc6950c5d448c.tar.gz Muddle-04de0fce0ac6758fd9684b0bf79dc6950c5d448c.zip |
Replace QToolButtons with QPushButtons
-rw-r--r-- | gui.py | 5 | ||||
-rw-r--r-- | muddle.ui | 4 |
2 files changed, 4 insertions, 5 deletions
@@ -41,7 +41,6 @@ from PyQt5.QtWidgets import ( QGridLayout, QHBoxLayout, QPushButton, - QToolButton, QLineEdit, QProgressBar, QTabWidget, @@ -334,7 +333,7 @@ class MuddleWindow(QMainWindow): moodleTreeView.doubleClicked.connect(self.onMoodleTreeViewDoubleClicked) ## refresh moodle treeview - refreshBtn = self.findChild(QToolButton, "refreshBtn") + refreshBtn = self.findChild(QPushButton, "refreshBtn") refreshBtn.clicked.connect(self.onRefreshBtnClicked) if not self.instanceUrl: @@ -352,7 +351,7 @@ class MuddleWindow(QMainWindow): searchBar.textEdited.connect(self.onSearchBarTextChanged) ## select path - selectPathBtn = self.findChild(QToolButton, "selectPathBtn") + selectPathBtn = self.findChild(QPushButton, "selectPathBtn") selectPathBtn.clicked.connect(self.onSelectPathBtnClicked) # local filesystem tab @@ -81,14 +81,14 @@ </widget> </item> <item row="0" column="1"> - <widget class="QToolButton" name="refreshBtn"> + <widget class="QPushButton" name="refreshBtn"> <property name="text"> <string>Refresh</string> </property> </widget> </item> <item row="2" column="1"> - <widget class="QToolButton" name="selectPathBtn"> + <widget class="QPushButton" name="selectPathBtn"> <property name="enabled"> <bool>true</bool> </property> |