summaryrefslogtreecommitdiffstats
path: root/kchart/kchartHeaderFooterConfigPage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kchart/kchartHeaderFooterConfigPage.cc')
-rw-r--r--kchart/kchartHeaderFooterConfigPage.cc132
1 files changed, 66 insertions, 66 deletions
diff --git a/kchart/kchartHeaderFooterConfigPage.cc b/kchart/kchartHeaderFooterConfigPage.cc
index 0d03f3e6..ad385f8b 100644
--- a/kchart/kchartHeaderFooterConfigPage.cc
+++ b/kchart/kchartHeaderFooterConfigPage.cc
@@ -23,11 +23,11 @@
#include <kapplication.h>
#include <kdialog.h>
#include <klocale.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qbuttongroup.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqbuttongroup.h>
+#include <tqwhatsthis.h>
#include <kfontdialog.h>
#include "kchart_params.h"
@@ -36,67 +36,67 @@ namespace KChart
{
KChartHeaderFooterConfigPage::KChartHeaderFooterConfigPage( KChartParams* params,
- QWidget* parent ) :
- QWidget( parent ),_params( params )
+ TQWidget* tqparent ) :
+ TQWidget( tqparent ),_params( params )
{
- QGridLayout* layout = new QGridLayout( this, 4, 3 );
- layout->setSpacing( KDialog::spacingHint() );
- layout->setMargin( KDialog::marginHint() );
+ TQGridLayout* tqlayout = new TQGridLayout( this, 4, 3 );
+ tqlayout->setSpacing( KDialog::spacingHint() );
+ tqlayout->setMargin( KDialog::marginHint() );
- QLabel *lab=new QLabel(i18n("Title:"), this);
- QWhatsThis::add(lab, i18n("Write here the title of your chart if you want one. The title will be centered on top above your chart."));
- layout->addWidget(lab,0,0);
+ TQLabel *lab=new TQLabel(i18n("Title:"), this);
+ TQWhatsThis::add(lab, i18n("Write here the title of your chart if you want one. The title will be centered on top above your chart."));
+ tqlayout->addWidget(lab,0,0);
- titleEdit=new QLineEdit(this);
- QWhatsThis::add(titleEdit, i18n("Write here the title of your chart if you want one. The title will be centered on top above your chart."));
- layout->addWidget(titleEdit,0,1);
+ titleEdit=new TQLineEdit(this);
+ TQWhatsThis::add(titleEdit, i18n("Write here the title of your chart if you want one. The title will be centered on top above your chart."));
+ tqlayout->addWidget(titleEdit,0,1);
titleColorButton=new KColorButton(this);
- QWhatsThis::add(titleColorButton, i18n("Click on this button to choose the color for the title font."));
- layout->addWidget(titleColorButton,0,2);
+ TQWhatsThis::add(titleColorButton, i18n("Click on this button to choose the color for the title font."));
+ tqlayout->addWidget(titleColorButton,0,2);
- titleFontButton=new QPushButton(i18n("Font..."),this);
- QWhatsThis::add(titleFontButton, i18n("Click on this button to choose the font family, style and size for the title."));
- layout->addWidget(titleFontButton,0,3);
- connect( titleFontButton, SIGNAL(clicked()), this, SLOT(changeTitleFont()));
+ titleFontButton=new TQPushButton(i18n("Font..."),this);
+ TQWhatsThis::add(titleFontButton, i18n("Click on this button to choose the font family, style and size for the title."));
+ tqlayout->addWidget(titleFontButton,0,3);
+ connect( titleFontButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(changeTitleFont()));
- lab=new QLabel(i18n("Subtitle:"),this);
- QWhatsThis::add(lab, i18n("Write here the subtitle of your chart if you want one. The subtitle will be centered on top just below the title."));
- layout->addWidget(lab,1,0);
+ lab=new TQLabel(i18n("Subtitle:"),this);
+ TQWhatsThis::add(lab, i18n("Write here the subtitle of your chart if you want one. The subtitle will be centered on top just below the title."));
+ tqlayout->addWidget(lab,1,0);
- subtitleEdit=new QLineEdit(this);
- QWhatsThis::add(subtitleEdit, i18n("Write here the subtitle of your chart if you want one. The subtitle will be centered on top just below the title."));
- layout->addWidget(subtitleEdit,1,1);
+ subtitleEdit=new TQLineEdit(this);
+ TQWhatsThis::add(subtitleEdit, i18n("Write here the subtitle of your chart if you want one. The subtitle will be centered on top just below the title."));
+ tqlayout->addWidget(subtitleEdit,1,1);
subtitleColorButton=new KColorButton(this);
- QWhatsThis::add(subtitleColorButton, i18n("Click on this button to choose the color for the subtitle font."));
- layout->addWidget(subtitleColorButton,1,2);
+ TQWhatsThis::add(subtitleColorButton, i18n("Click on this button to choose the color for the subtitle font."));
+ tqlayout->addWidget(subtitleColorButton,1,2);
- subtitleFontButton=new QPushButton(i18n("Font..."),this);
- QWhatsThis::add(subtitleFontButton, i18n("Click on this button to choose the font family, style and size for the subtitle."));
- layout->addWidget(subtitleFontButton,1,3);
- connect( subtitleFontButton, SIGNAL(clicked()), this, SLOT(changeSubtitleFont()));
+ subtitleFontButton=new TQPushButton(i18n("Font..."),this);
+ TQWhatsThis::add(subtitleFontButton, i18n("Click on this button to choose the font family, style and size for the subtitle."));
+ tqlayout->addWidget(subtitleFontButton,1,3);
+ connect( subtitleFontButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(changeSubtitleFont()));
- lab=new QLabel(i18n("Footer:"),this);
- QWhatsThis::add(lab, i18n("Write here the footer of your chart if you want one. The footer will be centered at the bottom just below your chart."));
- layout->addWidget(lab,2,0);
+ lab=new TQLabel(i18n("Footer:"),this);
+ TQWhatsThis::add(lab, i18n("Write here the footer of your chart if you want one. The footer will be centered at the bottom just below your chart."));
+ tqlayout->addWidget(lab,2,0);
- footerEdit=new QLineEdit(this);
- QWhatsThis::add(footerEdit, i18n("Write here the subtitle of your chart if you want one. The subtitle will be centered on top just below the title."));
- layout->addWidget(footerEdit,2,1);
+ footerEdit=new TQLineEdit(this);
+ TQWhatsThis::add(footerEdit, i18n("Write here the subtitle of your chart if you want one. The subtitle will be centered on top just below the title."));
+ tqlayout->addWidget(footerEdit,2,1);
footerColorButton=new KColorButton(this);
- QWhatsThis::add(footerColorButton, i18n("Click on this button to choose the color for the footer font."));
- layout->addWidget(footerColorButton,2,2);
+ TQWhatsThis::add(footerColorButton, i18n("Click on this button to choose the color for the footer font."));
+ tqlayout->addWidget(footerColorButton,2,2);
- footerFontButton=new QPushButton(i18n("Font..."),this);
- QWhatsThis::add(footerFontButton, i18n("Click on this button to choose the font family, style and size for the footer."));
- connect( footerFontButton, SIGNAL(clicked()), this, SLOT(changeFooterFont()));
- layout->addWidget(footerFontButton,2,3);
+ footerFontButton=new TQPushButton(i18n("Font..."),this);
+ TQWhatsThis::add(footerFontButton, i18n("Click on this button to choose the font family, style and size for the footer."));
+ connect( footerFontButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(changeFooterFont()));
+ tqlayout->addWidget(footerFontButton,2,3);
- layout->addItem( new QSpacerItem( 5, 5, QSizePolicy::Minimum, QSizePolicy::Expanding ), 3, 0 );
+ tqlayout->addItem( new TQSpacerItem( 5, 5, TQSizePolicy::Minimum, TQSizePolicy::Expanding ), 3, 0 );
- layout->activate();
+ tqlayout->activate();
}
void KChartHeaderFooterConfigPage::init()
@@ -111,23 +111,23 @@ void KChartHeaderFooterConfigPage::init()
titleFont = _params->header1Font();
titleFontIsRelative = _params->headerFooterFontUseRelSize(KDChartParams::HdFtPosHeader)
- ? QButton::On
- : QButton::Off;
- if( QButton::On == titleFontIsRelative )
+ ? TQButton::On
+ : TQButton::Off;
+ if( TQButton::On == titleFontIsRelative )
titleFont.setPointSize( _params->headerFooterFontRelSize(KDChartParams::HdFtPosHeader) );
subtitleFont = _params->header2Font();
subtitleFontIsRelative = _params->headerFooterFontUseRelSize(KDChartParams::HdFtPosHeader2)
- ? QButton::On
- : QButton::Off;
- if( QButton::On == subtitleFontIsRelative )
+ ? TQButton::On
+ : TQButton::Off;
+ if( TQButton::On == subtitleFontIsRelative )
subtitleFont.setPointSize( _params->headerFooterFontRelSize(KDChartParams::HdFtPosHeader2) );
footerFont = _params->footerFont();
footerFontIsRelative = _params->headerFooterFontUseRelSize(KDChartParams::HdFtPosFooter)
- ? QButton::On
- : QButton::Off;
- if( QButton::On == footerFontIsRelative )
+ ? TQButton::On
+ : TQButton::Off;
+ if( TQButton::On == footerFontIsRelative )
footerFont.setPointSize( _params->headerFooterFontRelSize(KDChartParams::HdFtPosFooter) );
}
@@ -157,25 +157,25 @@ void KChartHeaderFooterConfigPage::apply()
void KChartHeaderFooterConfigPage::changeTitleFont()
{
- QButton::ToggleState state = titleFontIsRelative;
- if ( KFontDialog::getFont( titleFont,false,this, true,&state ) != QDialog::Rejected
- && QButton::NoChange != state )
+ TQButton::ToggleState state = titleFontIsRelative;
+ if ( KFontDialog::getFont( titleFont,false,this, true,&state ) != TQDialog::Rejected
+ && TQButton::NoChange != state )
titleFontIsRelative = state;
}
void KChartHeaderFooterConfigPage::changeSubtitleFont()
{
- QButton::ToggleState state = subtitleFontIsRelative;
- if ( KFontDialog::getFont( subtitleFont,false,this, true,&state ) != QDialog::Rejected
- && QButton::NoChange != state )
+ TQButton::ToggleState state = subtitleFontIsRelative;
+ if ( KFontDialog::getFont( subtitleFont,false,this, true,&state ) != TQDialog::Rejected
+ && TQButton::NoChange != state )
subtitleFontIsRelative = state;
}
void KChartHeaderFooterConfigPage::changeFooterFont()
{
- QButton::ToggleState state = footerFontIsRelative;
- if ( KFontDialog::getFont( footerFont,false,this, true,&state ) != QDialog::Rejected
- && QButton::NoChange != state )
+ TQButton::ToggleState state = footerFontIsRelative;
+ if ( KFontDialog::getFont( footerFont,false,this, true,&state ) != TQDialog::Rejected
+ && TQButton::NoChange != state )
footerFontIsRelative = state;
}