Clang: warnings--, drop unused WindowFlags parameter
This commit is contained in:
parent
c0867c76fd
commit
bd4ee9320d
@ -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 )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
@ -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) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user