Skip to content

Commit

Permalink
Added icons for save and load buttons; Open and Save buttons hiden fo…
Browse files Browse the repository at this point in the history
…r now
  • Loading branch information
NathanW2 committed Nov 2, 2011
1 parent 3ff610a commit 0a1cef9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
15 changes: 7 additions & 8 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -25,8 +25,10 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
{
setupUi( this );

mValueListWidget->hide();
mValueListLabel->hide();
mValueGroupBox->hide();
// The open and save button are for future.
btnOpen->hide();
btnSave->hide();

mModel = new QStandardItemModel( );
mProxyModel = new QgsExpressionItemSearchProxy();
Expand Down Expand Up @@ -112,8 +114,7 @@ void QgsExpressionBuilderWidget::on_expressionTree_clicked( const QModelIndex &i
else
{
// Show the help for the current item.
mValueListWidget->hide();
mValueListLabel->hide();
mValueGroupBox->hide();
mValueListWidget->clear();
txtHelpText->setText( item->getHelpText() );
txtHelpText->setToolTip( txtHelpText->text() );
Expand Down Expand Up @@ -327,8 +328,7 @@ void QgsExpressionBuilderWidget::loadSampleValues()
if ( !mLayer )
return;

mValueListWidget->show();
mValueListLabel->show();
mValueGroupBox->show();
int fieldIndex = mLayer->fieldNameIndex( item->text() );
fillFieldValues( fieldIndex, 10 );
}
Expand All @@ -342,8 +342,7 @@ void QgsExpressionBuilderWidget::loadAllValues()
if ( !mLayer )
return;

mValueListWidget->show();
mValueListLabel->show();
mValueGroupBox->show();
int fieldIndex = mLayer->fieldNameIndex( item->text() );
fillFieldValues( fieldIndex, -1 );
}
Expand Down
20 changes: 11 additions & 9 deletions src/ui/qgsexpressionbuilder.ui
Expand Up @@ -167,8 +167,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>270</width>
<height>137</height>
<width>264</width>
<height>153</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_4">
Expand Down Expand Up @@ -214,7 +214,7 @@
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<widget class="QGroupBox" name="mValueGroupBox">
<property name="title">
<string>Field Values</string>
</property>
Expand Down Expand Up @@ -432,7 +432,7 @@
<property name="maximumSize">
<size>
<width>16777215</width>
<height>150</height>
<height>120</height>
</size>
</property>
<property name="baseSize">
Expand Down Expand Up @@ -478,8 +478,8 @@
<string/>
</property>
<property name="icon">
<iconset>
<normaloff>../../images/themes/gis/mActionFileOpen.png</normaloff>../../images/themes/gis/mActionFileOpen.png</iconset>
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/gis/mActionFileOpen.png</normaloff>:/images/themes/gis/mActionFileOpen.png</iconset>
</property>
</widget>
</item>
Expand All @@ -489,8 +489,8 @@
<string/>
</property>
<property name="icon">
<iconset>
<normaloff>../../images/themes/gis/mActionFileSave.png</normaloff>../../images/themes/gis/mActionFileSave.png</iconset>
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionFileSave.png</normaloff>:/images/themes/default/mActionFileSave.png</iconset>
</property>
</widget>
</item>
Expand Down Expand Up @@ -585,6 +585,8 @@
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="../../images/images.qrc"/>
</resources>
<connections/>
</ui>

0 comments on commit 0a1cef9

Please sign in to comment.