Remove open/download plugins button

This commit is contained in:
Laurent Monin
2015-08-31 20:43:04 +02:00
parent a1be8ec361
commit 2ed91b5aa2
3 changed files with 0 additions and 26 deletions

View File

@@ -60,7 +60,6 @@ class PluginsOptionsPage(OptionsPage):
self.loader = "file://%s"
self.ui.install_plugin.clicked.connect(self.open_plugins)
self.ui.folder_open.clicked.connect(self.open_plugin_dir)
self.ui.plugin_download.clicked.connect(self.open_plugin_site)
self.tagger.pluginmanager.plugin_installed.connect(self.plugin_installed)
def load(self):
@@ -152,9 +151,6 @@ class PluginsOptionsPage(OptionsPage):
def open_plugin_dir(self):
QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.loader % USER_PLUGIN_DIR, QtCore.QUrl.TolerantMode))
def open_plugin_site(self):
webbrowser2.goto('plugins')
def mimeTypes(self):
return ["text/uri-list"]

View File

@@ -54,14 +54,6 @@ class Ui_PluginsOptionsPage(object):
self.folder_open.setSizePolicy(sizePolicy)
self.folder_open.setObjectName(_fromUtf8("folder_open"))
self.horizontalLayout.addWidget(self.folder_open)
self.plugin_download = QtGui.QPushButton(self.groupBox_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.plugin_download.sizePolicy().hasHeightForWidth())
self.plugin_download.setSizePolicy(sizePolicy)
self.plugin_download.setObjectName(_fromUtf8("plugin_download"))
self.horizontalLayout.addWidget(self.plugin_download)
self.vboxlayout1.addLayout(self.horizontalLayout)
self.groupBox = QtGui.QGroupBox(self.splitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
@@ -130,6 +122,5 @@ class Ui_PluginsOptionsPage(object):
self.plugins.headerItem().setText(2, _("Author"))
self.install_plugin.setText(_("Install plugin..."))
self.folder_open.setText(_("Open plugin folder"))
self.plugin_download.setText(_("Download plugins"))
self.groupBox.setTitle(_("Details"))

View File

@@ -89,19 +89,6 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="plugin_download">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Download plugins</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>