summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/ui/kivioarrowheadformatdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kivio/kiviopart/ui/kivioarrowheadformatdlg.cpp')
-rw-r--r--kivio/kiviopart/ui/kivioarrowheadformatdlg.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/kivio/kiviopart/ui/kivioarrowheadformatdlg.cpp b/kivio/kiviopart/ui/kivioarrowheadformatdlg.cpp
index 04429587..69312faf 100644
--- a/kivio/kiviopart/ui/kivioarrowheadformatdlg.cpp
+++ b/kivio/kiviopart/ui/kivioarrowheadformatdlg.cpp
@@ -19,13 +19,13 @@
#include "kivioarrowheadformatdlg.h"
-#include <qlabel.h>
-#include <qgroupbox.h>
-#include <qlayout.h>
-#include <qbitmap.h>
-#include <qpixmap.h>
-#include <qpainter.h>
-#include <qframe.h>
+#include <tqlabel.h>
+#include <tqgroupbox.h>
+#include <tqlayout.h>
+#include <tqbitmap.h>
+#include <tqpixmap.h>
+#include <tqpainter.h>
+#include <tqframe.h>
#include <kcombobox.h>
#include <klocale.h>
@@ -36,8 +36,8 @@
#include "kivio_view.h"
#include "kivioglobal.h"
-KivioArrowHeadFormatDlg::KivioArrowHeadFormatDlg(KivioView* parent, const char* name)
- : KDialogBase(parent, name, true, i18n("Arrowhead Format"), Ok|Cancel|Default, Ok)
+KivioArrowHeadFormatDlg::KivioArrowHeadFormatDlg(KivioView* tqparent, const char* name)
+ : KDialogBase(tqparent, name, true, i18n("Arrowhead Format"), Ok|Cancel|Default, Ok)
{
m_unit = KoUnit::U_PT;
init();
@@ -45,42 +45,42 @@ KivioArrowHeadFormatDlg::KivioArrowHeadFormatDlg(KivioView* parent, const char*
void KivioArrowHeadFormatDlg::init()
{
- QWidget* mainWidget = new QWidget(this);
+ TQWidget* mainWidget = new TQWidget(this);
setMainWidget(mainWidget);
- QGridLayout* gl = new QGridLayout(mainWidget, 2, 1, 0, KDialog::spacingHint());
+ TQGridLayout* gl = new TQGridLayout(mainWidget, 2, 1, 0, KDialog::spacingHint());
- QLabel* startAHHeaderIcon = new QLabel(mainWidget);
+ TQLabel* startAHHeaderIcon = new TQLabel(mainWidget);
startAHHeaderIcon->setPixmap(SmallIcon("start_arrowhead", 16));
startAHHeaderIcon->setFixedSize(16, 16);
- QLabel* startAHHeaderLabel = new QLabel(i18n("<b>Arrowhead at Origin</b>"), mainWidget);
- QFont font = startAHHeaderLabel->font();
- QFrame* startAHHeaderLine = new QFrame(mainWidget);
- startAHHeaderLine->setFrameStyle(QFrame::HLine|QFrame::Plain);
- QLabel* startAHTypeLbl = new QLabel(i18n("&Type:"), mainWidget);
+ TQLabel* startAHHeaderLabel = new TQLabel(i18n("<b>Arrowhead at Origin</b>"), mainWidget);
+ TQFont font = startAHHeaderLabel->font();
+ TQFrame* startAHHeaderLine = new TQFrame(mainWidget);
+ startAHHeaderLine->setFrameStyle(TQFrame::HLine|TQFrame::Plain);
+ TQLabel* startAHTypeLbl = new TQLabel(i18n("&Type:"), mainWidget);
m_startAHTypeCBox = new KComboBox(mainWidget);
loadArrowHeads(m_startAHTypeCBox);
startAHTypeLbl->setBuddy(m_startAHTypeCBox);
- QLabel* startAHWidthLbl = new QLabel(i18n("&Width:"), mainWidget);
+ TQLabel* startAHWidthLbl = new TQLabel(i18n("&Width:"), mainWidget);
m_startAHWidthUSBox = new KoUnitDoubleSpinBox(mainWidget, 0.0, 1000.0, 0.1, 1.0, m_unit, 2);
startAHWidthLbl->setBuddy(m_startAHWidthUSBox);
- QLabel* startAHHeightLbl = new QLabel(i18n("&Length:"), mainWidget);
+ TQLabel* startAHHeightLbl = new TQLabel(i18n("&Length:"), mainWidget);
m_startAHHeightUSBox = new KoUnitDoubleSpinBox(mainWidget, 0.0, 1000.0, 0.1, 1.0, m_unit, 2);
startAHHeightLbl->setBuddy(m_startAHHeightUSBox);
- QLabel* endAHHeaderIcon = new QLabel(mainWidget);
+ TQLabel* endAHHeaderIcon = new TQLabel(mainWidget);
endAHHeaderIcon->setPixmap(SmallIcon("end_arrowhead", 16));
endAHHeaderIcon->setFixedSize(16, 16);
- QLabel* endAHHeaderLabel = new QLabel(i18n("<b>Arrowhead at End</b>"), mainWidget);
- QFrame* endAHHeaderLine = new QFrame(mainWidget);
- endAHHeaderLine->setFrameStyle(QFrame::HLine|QFrame::Plain);
- QLabel* endAHTypeLbl = new QLabel(i18n("T&ype:"), mainWidget);
+ TQLabel* endAHHeaderLabel = new TQLabel(i18n("<b>Arrowhead at End</b>"), mainWidget);
+ TQFrame* endAHHeaderLine = new TQFrame(mainWidget);
+ endAHHeaderLine->setFrameStyle(TQFrame::HLine|TQFrame::Plain);
+ TQLabel* endAHTypeLbl = new TQLabel(i18n("T&ype:"), mainWidget);
m_endAHTypeCBox = new KComboBox(mainWidget);
loadArrowHeads(m_endAHTypeCBox);
endAHTypeLbl->setBuddy(m_endAHTypeCBox);
- QLabel* endAHWidthLbl = new QLabel(i18n("W&idth:"), mainWidget);
+ TQLabel* endAHWidthLbl = new TQLabel(i18n("W&idth:"), mainWidget);
m_endAHWidthUSBox = new KoUnitDoubleSpinBox(mainWidget, 0.0, 1000.0, 0.1, 1.0, m_unit, 2);
endAHWidthLbl->setBuddy(m_endAHWidthUSBox);
- QLabel* endAHHeightLbl = new QLabel(i18n("L&ength:"), mainWidget);
+ TQLabel* endAHHeightLbl = new TQLabel(i18n("L&ength:"), mainWidget);
m_endAHHeightUSBox = new KoUnitDoubleSpinBox(mainWidget, 0.0, 1000.0, 0.1, 1.0, m_unit, 2);
endAHHeightLbl->setBuddy(m_endAHHeightUSBox);
@@ -94,8 +94,8 @@ void KivioArrowHeadFormatDlg::init()
gl->addMultiCellWidget(startAHHeightLbl, 4, 4, 0, 1);
gl->addWidget(m_startAHHeightUSBox, 4, 2);
- gl->addMultiCell(new QSpacerItem(KDialog::marginHint(), KDialog::marginHint(),
- QSizePolicy::Minimum, QSizePolicy::Fixed), 5, 5, 0, 2);
+ gl->addMultiCell(new TQSpacerItem(KDialog::marginHint(), KDialog::marginHint(),
+ TQSizePolicy::Minimum, TQSizePolicy::Fixed), 5, 5, 0, 2);
gl->addWidget(endAHHeaderIcon, 6, 0);
gl->addMultiCellWidget(endAHHeaderLabel, 6, 6, 1, 2);
@@ -111,10 +111,10 @@ void KivioArrowHeadFormatDlg::init()
void KivioArrowHeadFormatDlg::loadArrowHeads(KComboBox* combo)
{
- QBitmap mask;
- QPixmap pixAll = Kivio::arrowHeadPixmap();
- QPixmap pix(pixAll.width(), 17);
- QPainter p(&pix, combo);
+ TQBitmap tqmask;
+ TQPixmap pixAll = Kivio::arrowHeadPixmap();
+ TQPixmap pix(pixAll.width(), 17);
+ TQPainter p(&pix, combo);
int cindex = 0;
// insert item "None"