Name method parameters in declaration, even when it's obvious

As pointed out during header review. Makes Qt more IDE friendly.

Change-Id: Icb610dba39e39ffd6674c79d9c6e087294788489
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
Volker Hilsheimer 2020-02-25 17:04:23 +01:00
parent 2090b770da
commit a53a52a631
2 changed files with 8 additions and 8 deletions

View File

@ -103,10 +103,10 @@ public:
void moveTab(int from, int to);
bool isTabEnabled(int index) const;
void setTabEnabled(int index, bool);
void setTabEnabled(int index, bool enabled);
bool isTabVisible(int index) const;
void setTabVisible(int index, bool);
void setTabVisible(int index, bool visible);
QString tabText(int index) const;
void setTabText(int index, const QString &text);
@ -118,7 +118,7 @@ public:
void setTabIcon(int index, const QIcon &icon);
Qt::TextElideMode elideMode() const;
void setElideMode(Qt::TextElideMode);
void setElideMode(Qt::TextElideMode mode);
#ifndef QT_NO_TOOLTIP
void setTabToolTip(int index, const QString &tip);

View File

@ -80,13 +80,13 @@ public:
void removeTab(int index);
bool isTabEnabled(int index) const;
void setTabEnabled(int index, bool);
void setTabEnabled(int index, bool enabled);
bool isTabVisible(int index) const;
void setTabVisible(int index, bool);
void setTabVisible(int index, bool visible);
QString tabText(int index) const;
void setTabText(int index, const QString &);
void setTabText(int index, const QString &text);
QIcon tabIcon(int index) const;
void setTabIcon(int index, const QIcon & icon);
@ -110,7 +110,7 @@ public:
enum TabPosition { North, South, West, East };
Q_ENUM(TabPosition)
TabPosition tabPosition() const;
void setTabPosition(TabPosition);
void setTabPosition(TabPosition position);
bool tabsClosable() const;
void setTabsClosable(bool closeable);
@ -132,7 +132,7 @@ public:
QWidget * cornerWidget(Qt::Corner corner = Qt::TopRightCorner) const;
Qt::TextElideMode elideMode() const;
void setElideMode(Qt::TextElideMode);
void setElideMode(Qt::TextElideMode mode);
QSize iconSize() const;
void setIconSize(const QSize &size);