summaryrefslogtreecommitdiffstats
path: root/digikam/utilities/cameragui/freespacewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/utilities/cameragui/freespacewidget.cpp')
-rw-r--r--digikam/utilities/cameragui/freespacewidget.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/digikam/utilities/cameragui/freespacewidget.cpp b/digikam/utilities/cameragui/freespacewidget.cpp
index 1f103ebf..0a32eb25 100644
--- a/digikam/utilities/cameragui/freespacewidget.cpp
+++ b/digikam/utilities/cameragui/freespacewidget.cpp
@@ -27,7 +27,7 @@
#include <tqtooltip.h>
#include <tqpainter.h>
#include <tqpixmap.h>
-#include <palette.h>
+#include <tqpalette.h>
#include <tqcolor.h>
#include <tqtimer.h>
#include <tqfont.h>
@@ -109,7 +109,7 @@ void FreeSpaceWidget::setEstimatedDSizeKb(unsigned long dSize)
{
d->dSizeKb = dSize;
updatePixmap();
- repaint();
+ tqrepaint();
}
unsigned long FreeSpaceWidget::estimatedDSizeKb()
@@ -151,10 +151,10 @@ void FreeSpaceWidget::updatePixmap()
{
TQPixmap fimgPix = SmallIcon("folder_image");
d->pix = TQPixmap(size());
- d->pix.fill(colorGroup().background());
+ d->pix.fill(tqcolorGroup().background());
TQPainter p(&d->pix);
- p.setPen(colorGroup().mid());
+ p.setPen(tqcolorGroup().mid());
p.drawRect(0, 0, d->pix.width(), d->pix.height());
p.drawPixmap(2, d->pix.height()/2-fimgPix.height()/2,
fimgPix, 0, 0, fimgPix.width(), fimgPix.height());
@@ -173,8 +173,8 @@ void FreeSpaceWidget::updatePixmap()
p.drawRect(gRect);
TQRect tRect(fimgPix.height()+2, 1, d->pix.width()-2-fimgPix.width()-2, d->pix.height()-2);
- TQString text = TQString("%1%").arg(peUsed);
- p.setPen(colorGroup().text());
+ TQString text = TQString("%1%").tqarg(peUsed);
+ p.setPen(tqcolorGroup().text());
TQFontMetrics fontMt = p.fontMetrics();
TQRect fontRect = fontMt.boundingRect(tRect.x(), tRect.y(),
tRect.width(), tRect.height(), 0, text);
@@ -246,7 +246,7 @@ void FreeSpaceWidget::slotAvailableFreeSpace(const unsigned long& kBSize, const
d->percentUsed = 100 - (int)(100.0*kBAvail/kBSize);
d->isValid = true;
updatePixmap();
- repaint();
+ tqrepaint();
}
} // namespace Digikam