Skip to content

Commit 265da3f

Browse files
authored
Merge pull request #4292 from Gustry/fix_mac_build
fix undeclared identifier on MAC in composer
2 parents 060a57f + 1196377 commit 265da3f

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/app/composer/qgscomposer.cpp

-11
Original file line numberDiff line numberDiff line change
@@ -3336,17 +3336,6 @@ void QgsComposer::resizeEvent( QResizeEvent *e )
33363336
saveWindowState();
33373337
}
33383338

3339-
#ifdef Q_OS_MAC
3340-
void QgsComposer::showEvent( QShowEvent *event )
3341-
{
3342-
// add to menu if (re)opening window (event not due to unminimize)
3343-
if ( !event->spontaneous() )
3344-
{
3345-
mQgis->addWindow( mWindowAction );
3346-
}
3347-
}
3348-
#endif
3349-
33503339
void QgsComposer::saveWindowState()
33513340
{
33523341
QgsSettings settings;

src/app/composer/qgscomposer.h

-4
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
142142
//! Resize event
143143
virtual void resizeEvent( QResizeEvent * ) override;
144144

145-
#ifdef Q_OS_MAC
146-
virtual void showEvent( QShowEvent *event ) override;
147-
#endif
148-
149145
signals:
150146
//! Is emitted every time the view zoom has changed
151147
void zoomLevelChanged();

0 commit comments

Comments
 (0)