Skip to content

Commit

Permalink
more font propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 25, 2012
1 parent ac44ace commit a30eb37
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 20 deletions.
6 changes: 1 addition & 5 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -69,17 +69,13 @@
#include <QPaintEngine>


QgsComposer::QgsComposer( QgisApp *qgis, const QString& title ): QMainWindow(), mTitle( title ), mUndoView( 0 )
QgsComposer::QgsComposer( QgisApp *qgis, const QString& title ): QMainWindow( qgis ), mTitle( title ), mUndoView( 0 )
{
setupUi( this );
setWindowTitle( mTitle );
setupTheme();
QObject::connect( mButtonBox, SIGNAL( rejected() ), this, SLOT( close() ) );

QSettings settings;
int size = settings.value( "/IconSize", 24 ).toInt();
setIconSize( QSize( size, size ) );

QToolButton* orderingToolButton = new QToolButton( this );
orderingToolButton->setPopupMode( QToolButton::InstantPopup );
orderingToolButton->setAutoRaise( true );
Expand Down
2 changes: 1 addition & 1 deletion src/app/legend/qgslegend.cpp
Expand Up @@ -601,7 +601,7 @@ void QgsLegend::handleRightClickEvent( QTreeWidgetItem* item, const QPoint& posi
return;
}

QMenu theMenu;
QMenu theMenu( tr( "Legend context" ), this );

QgsLegendItem* li = dynamic_cast<QgsLegendItem *>( item );
if ( li )
Expand Down
8 changes: 4 additions & 4 deletions src/app/qgisapp.cpp
Expand Up @@ -2034,7 +2034,7 @@ void QgisApp::restoreWindowState()
///////////// END OF GUI SETUP ROUTINES ///////////////
void QgisApp::sponsors()
{
QgsSponsors * sponsors = new QgsSponsors();
QgsSponsors * sponsors = new QgsSponsors( this );
sponsors->show();
sponsors->raise();
sponsors->activateWindow();
Expand All @@ -2046,7 +2046,7 @@ void QgisApp::about()
if ( !abt )
{
QApplication::setOverrideCursor( Qt::WaitCursor );
abt = new QgsAbout();
abt = new QgsAbout( this );
QString versionString = "<html><body><div align='center'><table width='100%'>";

versionString += "<tr>";
Expand Down Expand Up @@ -6986,7 +6986,7 @@ void QgisApp::showLayerProperties( QgsMapLayer *ml )
}
else
{
rlp = new QgsRasterLayerProperties( ml, mMapCanvas );
rlp = new QgsRasterLayerProperties( ml, mMapCanvas, this );
connect( rlp, SIGNAL( refreshLegend( QString, bool ) ), mMapLegend, SLOT( refreshLayerSymbology( QString, bool ) ) );
}

Expand All @@ -7004,7 +7004,7 @@ void QgisApp::showLayerProperties( QgsMapLayer *ml )
}
else
{
vlp = new QgsVectorLayerProperties( vlayer );
vlp = new QgsVectorLayerProperties( vlayer, this );
connect( vlp, SIGNAL( refreshLegend( QString, bool ) ), mMapLegend, SLOT( refreshLayerSymbology( QString, bool ) ) );
}

Expand Down
8 changes: 4 additions & 4 deletions src/app/qgsabout.cpp
Expand Up @@ -30,11 +30,11 @@
std::map<QString, QPixmap> mugs;
*/
#ifdef Q_OS_MACX
QgsAbout::QgsAbout()
: QDialog( NULL, Qt::WindowSystemMenuHint ) // Modeless dialog with close button only
QgsAbout::QgsAbout( QWidget *parent )
: QDialog( parent, Qt::WindowSystemMenuHint ) // Modeless dialog with close button only
#else
QgsAbout::QgsAbout()
: QDialog( NULL ) // Normal dialog in non Mac-OS
QgsAbout::QgsAbout( QWidget *parent )
: QDialog( parent ) // Normal dialog in non Mac-OS
#endif
{
setupUi( this );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsabout.h
Expand Up @@ -23,7 +23,7 @@ class QgsAbout : public QDialog, private Ui::QgsAbout
{
Q_OBJECT
public:
QgsAbout();
QgsAbout( QWidget *parent );
~QgsAbout();
void setVersion( QString v );
static QString fileSystemSafe( QString string );
Expand Down
8 changes: 4 additions & 4 deletions src/app/qgssponsors.cpp
Expand Up @@ -21,11 +21,11 @@
#include <QTextStream>

#ifdef Q_OS_MACX
QgsSponsors::QgsSponsors()
: QDialog( NULL, Qt::WindowSystemMenuHint ) // Modeless dialog with close button only
QgsSponsors::QgsSponsors( QWidget *parent )
: QDialog( parent, Qt::WindowSystemMenuHint ) // Modeless dialog with close button only
#else
QgsSponsors::QgsSponsors()
: QDialog( NULL ) // Normal dialog in non Mac-OS
QgsSponsors::QgsSponsors( QWidget *parent )
: QDialog( parent ) // Normal dialog in non Mac-OS
#endif
{
setupUi( this );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgssponsors.h
Expand Up @@ -23,7 +23,7 @@ class QgsSponsors : public QDialog, private Ui::QgsSponsorsBase
{
Q_OBJECT
public:
QgsSponsors();
QgsSponsors( QWidget *parent );
~QgsSponsors();

private:
Expand Down

0 comments on commit a30eb37

Please sign in to comment.