diff options
author | Michele Calgaro <[email protected]> | 2023-11-13 20:33:00 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-15 23:44:25 +0900 |
commit | c8ece3630d4d21acaf1749fc2cf660a0463070c3 (patch) | |
tree | bae3d3c70886ceeffd914cac031dfeab532a607a /tdeui/kdualcolorbutton.cpp | |
parent | 419c185be746df8bba59fe5de991b4a2b3977897 (diff) | |
download | tdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.tar.gz tdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeui/kdualcolorbutton.cpp')
-rw-r--r-- | tdeui/kdualcolorbutton.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tdeui/kdualcolorbutton.cpp b/tdeui/kdualcolorbutton.cpp index 532e4aaaa..44bd6d6f2 100644 --- a/tdeui/kdualcolorbutton.cpp +++ b/tdeui/kdualcolorbutton.cpp @@ -46,8 +46,8 @@ KDualColorButton::KDualColorButton(TQWidget *parent, const char *name, TQWidget* (const unsigned char *)dcolorarrow_bits, true); arrowBitmap->setMask(*arrowBitmap); // heh resetPixmap = new TQPixmap((const char **)dcolorreset_xpm); - fg = TQBrush(Qt::black, Qt::SolidPattern); - bg = TQBrush(Qt::white, Qt::SolidPattern); + fg = TQBrush(TQt::black, TQt::SolidPattern); + bg = TQBrush(TQt::white, TQt::SolidPattern); curColor = Foreground; dragFlag = false; miniCtlFlag = false; @@ -67,8 +67,8 @@ KDualColorButton::KDualColorButton(const TQColor &fgColor, const TQColor &bgColo (const unsigned char *)dcolorarrow_bits, true); arrowBitmap->setMask(*arrowBitmap); resetPixmap = new TQPixmap((const char **)dcolorreset_xpm); - fg = TQBrush(fgColor, Qt::SolidPattern); - bg = TQBrush(bgColor, Qt::SolidPattern); + fg = TQBrush(fgColor, TQt::SolidPattern); + bg = TQBrush(bgColor, TQt::SolidPattern); curColor = Foreground; dragFlag = false; miniCtlFlag = false; @@ -111,7 +111,7 @@ TQSize KDualColorButton::sizeHint() const void KDualColorButton::setForeground(const TQColor &c) { - fg = TQBrush(c, Qt::SolidPattern); + fg = TQBrush(c, TQt::SolidPattern); repaint(false); emit fgChanged(fg.color()); @@ -119,7 +119,7 @@ void KDualColorButton::setForeground(const TQColor &c) void KDualColorButton::setBackground(const TQColor &c) { - bg = TQBrush(c, Qt::SolidPattern); + bg = TQBrush(c, TQt::SolidPattern); repaint(false); emit bgChanged(bg.color()); @@ -128,9 +128,9 @@ void KDualColorButton::setBackground(const TQColor &c) void KDualColorButton::setCurrentColor(const TQColor &c) { if(curColor == Background) - bg = TQBrush(c, Qt::SolidPattern); + bg = TQBrush(c, TQt::SolidPattern); else - fg = TQBrush(c, Qt::SolidPattern); + fg = TQBrush(c, TQt::SolidPattern); repaint(false); } @@ -211,8 +211,8 @@ void KDualColorButton::mousePressEvent(TQMouseEvent *ev) miniCtlFlag = true; } else if(ev->pos().x() < bgRect.x()){ - fg.setColor(Qt::black); - bg.setColor(Qt::white); + fg.setColor(TQt::black); + bg.setColor(TQt::white); emit fgChanged(fg.color()); emit bgChanged(bg.color()); miniCtlFlag = true; |