Skip to content
Permalink
Browse files

String consistency

  • Loading branch information
nyalldawson committed Sep 13, 2018
1 parent 833cdd8 commit 3c0ebd583b7961755c2e56e25b5f3d2ababee4b4
@@ -113,7 +113,7 @@ QgsPluginManager::QgsPluginManager( QWidget *parent, bool pluginsAreEnabled, Qt:
// Preset widgets
leFilter->setFocus( Qt::MouseFocusReason );
leFilter->setShowSearchIcon( true );
leFilter->setPlaceholderText( tr( "Search" ) );
leFilter->setPlaceholderText( tr( "Search" ) );
wvDetails->page()->setLinkDelegationPolicy( QWebPage::DelegateAllLinks );

// Connect other signals
@@ -83,14 +83,14 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
}

txtSearchEdit->setShowSearchIcon( true );
txtSearchEdit->setPlaceholderText( tr( "Search" ) );
txtSearchEdit->setPlaceholderText( tr( "Search" ) );

mValuesModel = new QStringListModel();
mProxyValues = new QSortFilterProxyModel();
mProxyValues->setSourceModel( mValuesModel );
mValuesListView->setModel( mProxyValues );
txtSearchEditValues->setShowSearchIcon( true );
txtSearchEditValues->setPlaceholderText( tr( "Search" ) );
txtSearchEditValues->setPlaceholderText( tr( "Search" ) );

QgsSettings settings;
splitter->restoreState( settings.value( QStringLiteral( "Windows/QgsExpressionBuilderWidget/splitter" ) ).toByteArray() );
@@ -75,7 +75,7 @@ QgsQueryBuilder::QgsQueryBuilder( QgsVectorLayer *layer,
txtSQL->setText( mOrigSubsetString );

mFilterLineEdit->setShowSearchIcon( true );
mFilterLineEdit->setPlaceholderText( tr( "Search" ) );
mFilterLineEdit->setPlaceholderText( tr( "Search" ) );
connect( mFilterLineEdit, &QgsFilterLineEdit::textChanged, this, &QgsQueryBuilder::onTextChanged );

populateFields();
@@ -175,7 +175,7 @@ QgsSymbolsListWidget::QgsSymbolsListWidget( QgsSymbol *symbol, QgsStyle *style,
QgsFilterLineEdit *groupEdit = new QgsFilterLineEdit();
groupEdit->setShowSearchIcon( true );
groupEdit->setShowClearButton( true );
groupEdit->setPlaceholderText( tr( "Filter symbols" ) );
groupEdit->setPlaceholderText( tr( "Filter symbols" ) );
groupsCombo->setLineEdit( groupEdit );
populateGroups();
connect( groupsCombo, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsSymbolsListWidget::groupsCombo_currentIndexChanged );

0 comments on commit 3c0ebd5

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