Fixed layout of the PluginPage.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4998 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-02-26 21:45:52 +00:00
parent cbad3a0a1e
commit 160a895c47
3 changed files with 57 additions and 47 deletions

View file

@ -39,7 +39,6 @@ PluginItem::PluginItem(int id, const QString& pluginTitle,const QString& pluginD
QObject::connect(_configure_PB,SIGNAL(clicked()),this,SLOT(configurePlugin())) ; QObject::connect(_configure_PB,SIGNAL(clicked()),this,SLOT(configurePlugin())) ;
expandFrame->hide(); expandFrame->hide();
} }
void PluginItem::togglePlugin(bool b) void PluginItem::togglePlugin(bool b)
@ -54,6 +53,10 @@ void PluginItem::configurePlugin()
void PluginItem::on_moreinfo_label_linkActivated(QString) void PluginItem::on_moreinfo_label_linkActivated(QString)
{ {
expandFrame->show(); if (expandFrame->isVisible()) {
expandFrame->hide();
} else {
expandFrame->show();
}
} }

View file

@ -7,10 +7,13 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>416</width> <width>416</width>
<height>175</height> <height>157</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_7"> <layout class="QVBoxLayout" name="verticalLayout_7">
<property name="margin">
<number>0</number>
</property>
<item> <item>
<widget class="QFrame" name="frame"> <widget class="QFrame" name="frame">
<property name="enabled"> <property name="enabled">
@ -141,12 +144,6 @@ p, li { white-space: pre-wrap; }
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer> </spacer>
</item> </item>
<item> <item>
@ -204,6 +201,9 @@ p, li { white-space: pre-wrap; }
<property name="text"> <property name="text">
<string notr="true">TextLabel</string> <string notr="true">TextLabel</string>
</property> </property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="2" column="0">
@ -224,6 +224,9 @@ p, li { white-space: pre-wrap; }
<property name="text"> <property name="text">
<string notr="true">TextLabel</string> <string notr="true">TextLabel</string>
</property> </property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item row="0" column="0">
@ -244,6 +247,9 @@ p, li { white-space: pre-wrap; }
<property name="text"> <property name="text">
<string notr="true">TextLabel</string> <string notr="true">TextLabel</string>
</property> </property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>

View file

@ -499,21 +499,15 @@
<property name="contextMenuPolicy"> <property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum> <enum>Qt::NoContextMenu</enum>
</property> </property>
<layout class="QGridLayout" name="gridLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item row="4" column="0"> <item>
<spacer name="verticalSpacer"> <widget class="QCheckBox" name="enableAll">
<property name="orientation"> <property name="text">
<enum>Qt::Vertical</enum> <string>Authorize all plugins</string>
</property> </property>
<property name="sizeHint" stdset="0"> </widget>
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item> </item>
<item row="2" column="0"> <item>
<widget class="QGroupBox" name="groupBox"> <widget class="QGroupBox" name="groupBox">
<property name="title"> <property name="title">
<string>Loaded plugins</string> <string>Loaded plugins</string>
@ -523,36 +517,43 @@
<number>6</number> <number>6</number>
</property> </property>
<item> <item>
<layout class="QVBoxLayout" name="_pluginsLayout"> <widget class="QScrollArea" name="scrollArea">
<property name="spacing"> <property name="frameShape">
<number>0</number> <enum>QFrame::NoFrame</enum>
</property> </property>
</layout> <property name="widgetResizable">
</item> <bool>true</bool>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <widget class="QWidget" name="scrollAreaWidgetContents">
<size> <property name="geometry">
<width>20</width> <rect>
<height>40</height> <x>0</x>
</size> <y>0</y>
</property> <width>391</width>
</spacer> <height>16</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QVBoxLayout" name="_pluginsLayout">
<property name="spacing">
<number>3</number>
</property>
<property name="margin">
<number>0</number>
</property>
</layout>
</widget>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item>
<widget class="QCheckBox" name="enableAll">
<property name="text">
<string>Authorize all plugins</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QGroupBox" name="groupBox_2"> <widget class="QGroupBox" name="groupBox_2">
<property name="title"> <property name="title">
<string>Plugin look-up directories</string> <string>Plugin look-up directories</string>
@ -561,7 +562,7 @@
<item> <item>
<widget class="QTextBrowser" name="_lookupDirectories_TB"> <widget class="QTextBrowser" name="_lookupDirectories_TB">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Maximum"> <sizepolicy hsizetype="Expanding" vsizetype="Minimum">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>