mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 12:25:38 -04:00
Clang: warnings--, drop unused WindowFlags parameter
This commit is contained in:
parent
c0867c76fd
commit
bd4ee9320d
4 changed files with 8 additions and 8 deletions
|
@ -21,13 +21,13 @@
|
|||
#include <QApplication>
|
||||
|
||||
|
||||
ClickableLabel::ClickableLabel( QWidget* parent, Qt::WindowFlags f )
|
||||
: QLabel( parent, f )
|
||||
ClickableLabel::ClickableLabel( QWidget* parent )
|
||||
: QLabel( parent )
|
||||
{}
|
||||
|
||||
|
||||
ClickableLabel::ClickableLabel( const QString& text, QWidget* parent, Qt::WindowFlags f )
|
||||
: QLabel( text, parent, f )
|
||||
ClickableLabel::ClickableLabel( const QString& text, QWidget* parent )
|
||||
: QLabel( text, parent )
|
||||
{}
|
||||
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@ class ClickableLabel : public QLabel
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ClickableLabel( QWidget* parent = nullptr, Qt::WindowFlags f = 0 );
|
||||
explicit ClickableLabel( const QString& text, QWidget* parent = nullptr, Qt::WindowFlags f = 0 );
|
||||
explicit ClickableLabel( QWidget* parent = nullptr );
|
||||
explicit ClickableLabel( const QString& text, QWidget* parent = nullptr );
|
||||
virtual ~ClickableLabel() override;
|
||||
|
||||
signals:
|
||||
|
|
|
@ -107,7 +107,7 @@ QPoint TimeZoneWidget::getLocationPosition(double longitude, double latitude) {
|
|||
if (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
|
||||
public:
|
||||
explicit TimeZoneWidget(QWidget* parent = 0);
|
||||
explicit TimeZoneWidget(QWidget* parent = nullptr);
|
||||
|
||||
LocaleGlobal::Location getCurrentLocation() { return currentLocation; }
|
||||
void setCurrentLocation(QString region, QString zone);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue