From 04de0fce0ac6758fd9684b0bf79dc6950c5d448c Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Thu, 24 Dec 2020 17:23:14 +0100 Subject: Replace QToolButtons with QPushButtons --- gui.py | 5 ++--- muddle.ui | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gui.py b/gui.py index 5828d0d..f58bf23 100644 --- a/gui.py +++ b/gui.py @@ -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 diff --git a/muddle.ui b/muddle.ui index ccd98bc..e574f46 100644 --- a/muddle.ui +++ b/muddle.ui @@ -81,14 +81,14 @@ - + Refresh - + true -- cgit v1.2.1