Clang: warnings--, drop unused WindowFlags parameter

This commit is contained in:
Adriaan de Groot 2017-09-26 11:51:11 +02:00
parent c0867c76fd
commit bd4ee9320d
4 changed files with 8 additions and 8 deletions

View File

@ -21,13 +21,13 @@
#include <QApplication> #include <QApplication>
ClickableLabel::ClickableLabel( QWidget* parent, Qt::WindowFlags f ) ClickableLabel::ClickableLabel( QWidget* parent )
: QLabel( parent, f ) : QLabel( parent )
{} {}
ClickableLabel::ClickableLabel( const QString& text, QWidget* parent, Qt::WindowFlags f ) ClickableLabel::ClickableLabel( const QString& text, QWidget* parent )
: QLabel( text, parent, f ) : QLabel( text, parent )
{} {}

View File

@ -27,8 +27,8 @@ class ClickableLabel : public QLabel
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit ClickableLabel( QWidget* parent = nullptr, Qt::WindowFlags f = 0 ); explicit ClickableLabel( QWidget* parent = nullptr );
explicit ClickableLabel( const QString& text, QWidget* parent = nullptr, Qt::WindowFlags f = 0 ); explicit ClickableLabel( const QString& text, QWidget* parent = nullptr );
virtual ~ClickableLabel() override; virtual ~ClickableLabel() override;
signals: signals:

View File

@ -107,7 +107,7 @@ QPoint TimeZoneWidget::getLocationPosition(double longitude, double latitude) {
if (y >= height) if (y >= height)
y -= height; y -= height;
return QPoint((int)x, (int)y); return QPoint( int(x), int(y) );
} }

View File

@ -48,7 +48,7 @@ class TimeZoneWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TimeZoneWidget(QWidget* parent = 0); explicit TimeZoneWidget(QWidget* parent = nullptr);
LocaleGlobal::Location getCurrentLocation() { return currentLocation; } LocaleGlobal::Location getCurrentLocation() { return currentLocation; }
void setCurrentLocation(QString region, QString zone); void setCurrentLocation(QString region, QString zone);