explicit ctors

svn path=/trunk/KDE/kdebase/workspace/; revision=707717
This commit is contained in:
Arto Hytönen 2007-09-02 19:11:09 +00:00
parent 4911fdce81
commit f3fbc3665b
11 changed files with 13 additions and 13 deletions

View file

@ -35,7 +35,7 @@ class B2Client;
class B2Button : public QAbstractButton
{
public:
B2Button(B2Client *_client=0, QWidget *parent=0, const QString& tip=NULL, const int realizeBtns = Qt::LeftButton);
explicit B2Button(B2Client *_client=0, QWidget *parent=0, const QString& tip=NULL, const int realizeBtns = Qt::LeftButton);
~B2Button() {}
void setBg(const QColor &c){bg = c;}

View file

@ -15,7 +15,7 @@ namespace KWMTheme {
class MyButton : public QToolButton
{
public:
MyButton(QWidget *parent=0, const char *name=0)
explicit MyButton(QWidget *parent=0, const char *name=0)
: QToolButton(parent, name){setAutoRaise(true);setCursor( arrowCursor ); }
protected:
void drawButtonLabel(QPainter *p);

View file

@ -45,7 +45,7 @@ Q_DECLARE_FLAGS(ButtonState, ButtonStatus)
class OxygenButton : public QAbstractButton
{
public:
OxygenButton(OxygenClient *parent=0,
explicit OxygenButton(OxygenClient *parent=0,
const QString &tip=NULL,
ButtonType type=ButtonHelp,
const unsigned char *bitmap=0);

View file

@ -25,7 +25,7 @@ class PresentWindowsEffectConfig : public KCModule
{
Q_OBJECT
public:
PresentWindowsEffectConfig(QWidget* parent = 0, const QStringList& args = QStringList());
explicit PresentWindowsEffectConfig(QWidget* parent = 0, const QStringList& args = QStringList());
~PresentWindowsEffectConfig();
virtual void save();

View file

@ -25,7 +25,7 @@ class ShadowEffectConfig : public KCModule
{
Q_OBJECT
public:
ShadowEffectConfig(QWidget* parent = 0, const QStringList& args = QStringList());
explicit ShadowEffectConfig(QWidget* parent = 0, const QStringList& args = QStringList());
~ShadowEffectConfig();
virtual void save();

View file

@ -150,7 +150,7 @@ class ButtonDropSite: public QFrame
Q_OBJECT
public:
ButtonDropSite( QWidget* parent=0, const char* name=0 );
explicit ButtonDropSite( QWidget* parent=0, const char* name=0 );
~ButtonDropSite();
// Allow external classes access our buttons - ensure buttons are
@ -203,7 +203,7 @@ class ButtonPositionWidget : public QWidget
Q_OBJECT
public:
ButtonPositionWidget(QWidget *parent = 0, const char* name = 0);
explicit ButtonPositionWidget(QWidget *parent = 0, const char* name = 0);
~ButtonPositionWidget();
/**

View file

@ -55,7 +55,7 @@ class DetectDialog
{
Q_OBJECT
public:
DetectDialog( QWidget* parent = NULL, const char* name = NULL );
explicit DetectDialog( QWidget* parent = NULL, const char* name = NULL );
void detect( WId window );
QByteArray selectedClass() const;
bool selectedWholeClass() const;

View file

@ -99,7 +99,7 @@ class RulesDialog
{
Q_OBJECT
public:
RulesDialog( QWidget* parent = NULL, const char* name = NULL );
explicit RulesDialog( QWidget* parent = NULL, const char* name = NULL );
Rules* edit( Rules* r, WId window, bool show_hints );
protected:
virtual void accept();

View file

@ -99,8 +99,8 @@ class KWIN_EXPORT GLTexture
{
public:
GLTexture();
GLTexture( const QImage& image, GLenum target = GL_TEXTURE_2D );
GLTexture( const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D );
explicit GLTexture( const QImage& image, GLenum target = GL_TEXTURE_2D );
explicit GLTexture( const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D );
GLTexture( const QString& fileName );
GLTexture( int width, int height );
virtual ~GLTexture();

View file

@ -23,7 +23,7 @@ class PopupInfo : public QWidget
{
Q_OBJECT
public:
PopupInfo( Workspace* ws, const char *name=0 );
explicit PopupInfo( Workspace* ws, const char *name=0 );
~PopupInfo();
void reset();

View file

@ -32,7 +32,7 @@ class KDecorationPreview
: public QWidget
{
public:
KDecorationPreview( KDecorationPlugins* plugin, QWidget* parent = NULL, const char* name = NULL );
explicit KDecorationPreview( KDecorationPlugins* plugin, QWidget* parent = NULL, const char* name = NULL );
virtual ~KDecorationPreview();
void performRepaintTest(int n);