Skip to content
Permalink
Browse files

Merge pull request #1079 from 3nids/uioptionbase

UI: remove top labels, use collapsible groupboxes, and other small improvements
  • Loading branch information
3nids committed Jan 16, 2014
2 parents 5310040 + 03a7125 commit 8b6d180bbd0279bcd175bafe2ca9266d00063a5f
@@ -538,8 +538,6 @@ void QgsPluginManager::reloadModelData()
if ( hasAvailablePlugins() ) mModelPlugins->appendRow( createSpacerItem( tr( "Installable", "category: plugins that are available for installation" ), "not installedZ" ) );
}

updateTabTitle();

buttonUpgradeAll->setEnabled( hasUpgradeablePlugins() );

// Disable tabs that are empty because of no suitable plugins in the model.
@@ -990,8 +988,6 @@ void QgsPluginManager::setCurrentTab( int idx )
}
mModelProxy->setAcceptedStatuses( acceptedStatuses );

updateTabTitle();

// load tab description HTML to the detail browser
QString tabInfoHTML = "";
QMap<QString, QString>::iterator it = mTabDescriptions.find( tabTitle );
@@ -1340,13 +1336,3 @@ bool QgsPluginManager::hasInvalidPlugins( )

return false;
}



void QgsPluginManager::updateTabTitle()
{
lbStatusFilter->setText( QString( " %1 > %2 (%3)" ).arg( tr( "Plugins" ) )
.arg( mOptionsListWidget->currentItem()->text() )
.arg( mModelProxy->countWithCurrentStatus() ) );
}

@@ -100,9 +100,6 @@ class QgsPluginManager : public QgsOptionsDialogBase, private Ui::QgsPluginManag
//! Set tab of the stacked widget (called from the vertical list item)
void setCurrentTab( int idx );

//! Update title of the current tab according to current filters
void updateTabTitle();

//! Handle plugin selection
void currentPluginChanged( const QModelIndex & theIndex );

@@ -150,23 +150,13 @@
</sizepolicy>
</property>
<property name="currentIndex">
<number>5</number>
<number>0</number>
</property>
<widget class="QWidget" name="mOptsPage_01">
<layout class="QVBoxLayout" name="verticalLayout_4">
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label">
<property name="styleSheet">
<string notr="true">font-weight:bold;</string>
</property>
<property name="text">
<string>About</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout">
<item>
@@ -201,8 +191,8 @@ p, li { white-space: pre-wrap; }
</layout>
</item>
<item>
<widget class="QWebView" name="txtVersion">
<property name="url">
<widget class="QWebView" name="txtVersion" native="true">
<property name="url" stdset="0">
<url>
<string>about:blank</string>
</url>
@@ -286,16 +276,6 @@ p, li { white-space: pre-wrap; }
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_4">
<property name="styleSheet">
<string notr="true">font-weight:bold;</string>
</property>
<property name="text">
<string>What's New</string>
</property>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="txtWhatsNew"/>
</item>
@@ -306,16 +286,6 @@ p, li { white-space: pre-wrap; }
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_5">
<property name="styleSheet">
<string notr="true">font-weight:bold;</string>
</property>
<property name="text">
<string>Providers</string>
</property>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="txtProviders"/>
</item>
@@ -326,23 +296,7 @@ p, li { white-space: pre-wrap; }
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="label_6">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">font-weight:bold;</string>
</property>
<property name="text">
<string>Developers</string>
</property>
</widget>
</item>
<item row="1" column="0" rowspan="2">
<item row="0" column="0" rowspan="2">
<widget class="QListWidget" name="lstDevelopers">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
@@ -358,7 +312,7 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item row="1" column="1">
<item row="0" column="1">
<widget class="QLabel" name="label_7">
<property name="text">
<string/>
@@ -374,7 +328,7 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item row="2" column="1">
<item row="1" column="1">
<widget class="QLabel" name="label_8">
<property name="font">
<font>
@@ -396,22 +350,6 @@ p, li { white-space: pre-wrap; }
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_9">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">font-weight:bold;</string>
</property>
<property name="text">
<string>Contributors</string>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="lstContributors">
<property name="alternatingRowColors">
@@ -427,24 +365,8 @@ p, li { white-space: pre-wrap; }
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_10">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">font-weight:bold;</string>
</property>
<property name="text">
<string>Translators</string>
</property>
</widget>
</item>
<item>
<widget class="QWebView" name="txtTranslators">
<property name="url">
<widget class="QWebView" name="txtTranslators" native="true">
<property name="url" stdset="0">
<url>
<string>about:blank</string>
</url>
@@ -458,22 +380,6 @@ p, li { white-space: pre-wrap; }
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_12">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">font-weight:bold;</string>
</property>
<property name="text">
<string>Donors</string>
</property>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="txtDonors">
<property name="openExternalLinks">
@@ -491,22 +397,6 @@ p, li { white-space: pre-wrap; }
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_13">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">font-weight:bold;</string>
</property>
<property name="text">
<string>License</string>
</property>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="txtLicense"/>
</item>

0 comments on commit 8b6d180

Please sign in to comment.
You can’t perform that action at this time.