mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Merge pull request #2509 from SebDieBln/FixTipWindow
initialize tip window with correct parent widget (fixes #8312) (fixes #8365)
This commit is contained in:
commit
95b26663f6
@ -916,7 +916,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
|
||||
if ( settings.value( QString( "/qgis/showTips%1" ).arg( QGis::QGIS_VERSION_INT / 100 ), true ).toBool() )
|
||||
{
|
||||
mSplash->hide();
|
||||
QgsTipGui myTip;
|
||||
QgsTipGui myTip( this );
|
||||
myTip.exec();
|
||||
}
|
||||
else
|
||||
|
@ -24,11 +24,11 @@
|
||||
#include <qgstipfactory.h>
|
||||
|
||||
#ifdef Q_OS_MACX
|
||||
QgsTipGui::QgsTipGui()
|
||||
: QDialog( nullptr, Qt::WindowSystemMenuHint ) // Modeless dialog with close button only
|
||||
QgsTipGui::QgsTipGui( QWidget *parent )
|
||||
: QDialog( parent, Qt::WindowSystemMenuHint ) // Dialog with close button only
|
||||
#else
|
||||
QgsTipGui::QgsTipGui()
|
||||
: QDialog( nullptr ) // Normal dialog in non Mac-OS
|
||||
QgsTipGui::QgsTipGui( QWidget *parent )
|
||||
: QDialog( parent ) // Normal dialog in non Mac-OS
|
||||
#endif
|
||||
{
|
||||
setupUi( this );
|
||||
|
@ -24,7 +24,7 @@ class APP_EXPORT QgsTipGui : public QDialog, private Ui::QgsTipGuiBase
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QgsTipGui();
|
||||
QgsTipGui( QWidget *parent = nullptr );
|
||||
~QgsTipGui();
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user