summaryrefslogtreecommitdiffstats
path: root/kgamma/kcmkgamma/displaynumber.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kgamma/kcmkgamma/displaynumber.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kgamma/kcmkgamma/displaynumber.cpp')
-rw-r--r--kgamma/kcmkgamma/displaynumber.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kgamma/kcmkgamma/displaynumber.cpp b/kgamma/kcmkgamma/displaynumber.cpp
index cb04f513..b3486e38 100644
--- a/kgamma/kcmkgamma/displaynumber.cpp
+++ b/kgamma/kcmkgamma/displaynumber.cpp
@@ -15,18 +15,18 @@
* *
***************************************************************************/
-#include <qstring.h>
-#include <qfontmetrics.h>
+#include <tqstring.h>
+#include <tqfontmetrics.h>
#include "displaynumber.h"
-DisplayNumber::DisplayNumber(QWidget *parent, int digits, \
- int prec, const char *name) : QLabel(parent,name) {
+DisplayNumber::DisplayNumber(TQWidget *parent, int digits, \
+ int prec, const char *name) : TQLabel(parent,name) {
setPrecision(prec);
setWidth(digits);
- setFrameStyle(QFrame::Panel | QFrame::Sunken);
+ setFrameStyle(TQFrame::Panel | TQFrame::Sunken);
setBackgroundMode(Qt::PaletteBase);
setAlignment(Qt::AlignCenter);
setFocusPolicy(NoFocus);
@@ -35,14 +35,14 @@ DisplayNumber::DisplayNumber(QWidget *parent, int digits, \
DisplayNumber::~DisplayNumber(){
}
-void DisplayNumber::setFont( const QFont & f ) {
- QLabel::setFont(f);
+void DisplayNumber::setFont( const TQFont & f ) {
+ TQLabel::setFont(f);
setWidth(dg);
}
void DisplayNumber::setWidth(int digits) {
- QFontMetrics fm(font());
- QString s("0123456789.+-");
+ TQFontMetrics fm(font());
+ TQString s("0123456789.+-");
int width = 0, charWidth=0;
for (int i = 0; i < 11; i++, width = fm.width(s[i]))
@@ -53,7 +53,7 @@ void DisplayNumber::setWidth(int digits) {
}
void DisplayNumber::setNum(double num) {
- QString text;
+ TQString text;
setText(text.setNum(num, 'f', precision));
}