Skip to content

Commit eae552f

Browse files
committedJan 29, 2012
fix warnings and icon size of GRASS toolbar
1 parent c0cbe53 commit eae552f

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed
 

‎src/app/qgsundowidget.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,12 @@ void QgsUndoWidget::setupUi( QDockWidget *UndoWidget )
135135
undoButton = new QPushButton( dockWidgetContents );
136136
undoButton->setObjectName( QString::fromUtf8( "undoButton" ) );
137137
undoButton->setIcon( QgisApp::instance()->getThemeIcon( "mActionUndo.png" ) );
138-
undoButton->setIconSize( QSize( 24, 24 ) );
139138

140139
gridLayout->addWidget( undoButton, 1, 0, 1, 1 );
141140

142141
redoButton = new QPushButton( dockWidgetContents );
143142
redoButton->setObjectName( QString::fromUtf8( "redoButton" ) );
144143
redoButton->setIcon( QgisApp::instance()->getThemeIcon( "mActionRedo.png" ) );
145-
redoButton->setIconSize( QSize( 24, 24 ) );
146144

147145
gridLayout->addWidget( redoButton, 1, 1, 1, 1 );
148146

‎src/plugins/grass/qgsgrassplugin.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ void QgsGrassPlugin::initGui()
181181

182182
// Add the toolbar to the main window
183183
toolBarPointer = qGisInterface->addToolBar( tr( "GRASS" ) );
184-
toolBarPointer->setIconSize( QSize( 24, 24 ) );
185184
toolBarPointer->setObjectName( "GRASS" );
186185

187186
// Add to the toolbar

‎src/plugins/grass/qgsgrassselect.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ QgsGrassSelect::QgsGrassSelect( QWidget *parent, int type ): QDialog( parent ),
3434
QgsDebugMsg( QString( "QgsGrassSelect() type = %1" ).arg( type ) );
3535

3636
setupUi( this );
37-
connect( buttonBox, SIGNAL( accepted() ), SLOT( on_ok_clicked() ) );
38-
connect( buttonBox, SIGNAL( rejected() ), this, SLOT( on_cancel_clicked() ) );
37+
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
38+
connect( buttonBox, SIGNAL( rejected() ), this, SLOT( reject() ) );
3939

4040
if ( first )
4141
{
@@ -394,7 +394,7 @@ void QgsGrassSelect::on_GisdbaseBrowse_clicked()
394394
}
395395
}
396396

397-
void QgsGrassSelect::on_ok_clicked()
397+
void QgsGrassSelect::accept()
398398
{
399399
gisdbase = egisdbase->text();
400400
lastGisdbase = QString( gisdbase );
@@ -456,8 +456,3 @@ void QgsGrassSelect::on_ok_clicked()
456456
}
457457
QDialog::accept();
458458
}
459-
460-
void QgsGrassSelect::on_cancel_clicked()
461-
{
462-
QDialog::reject();
463-
}

‎src/plugins/grass/qgsgrassselect.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ class QgsGrassSelect: public QDialog, private Ui::QgsGrassSelectBase
4949
int selectedType; // RASTER or GROUP
5050

5151
public slots:
52-
//! OK
53-
void on_ok_clicked();
54-
55-
//! Cancel
56-
void on_cancel_clicked();
52+
void accept();
5753

5854
//! Open dialog for Gisdbase
5955
void on_GisdbaseBrowse_clicked();
@@ -74,7 +70,6 @@ class QgsGrassSelect: public QDialog, private Ui::QgsGrassSelectBase
7470
void on_emap_activated() { setLayers(); }
7571
void setLayers();
7672

77-
7873
private:
7974
int type; // map type (mapset element)
8075
static bool first; // called first time

0 commit comments

Comments
 (0)
Please sign in to comment.