summaryrefslogtreecommitdiffstats
path: root/kpilot/kpilot/dbRecordEditor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kpilot/kpilot/dbRecordEditor.cc')
-rw-r--r--kpilot/kpilot/dbRecordEditor.cc60
1 files changed, 30 insertions, 30 deletions
diff --git a/kpilot/kpilot/dbRecordEditor.cc b/kpilot/kpilot/dbRecordEditor.cc
index 2b2d5b39..b3dfd8f7 100644
--- a/kpilot/kpilot/dbRecordEditor.cc
+++ b/kpilot/kpilot/dbRecordEditor.cc
@@ -27,14 +27,14 @@
#include "options.h"
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qbuttongroup.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
#include <kmessagebox.h>
@@ -49,12 +49,12 @@ using namespace KHE;
-DBRecordEditor::DBRecordEditor(PilotRecord*r, int n, QWidget *parent)
+DBRecordEditor::DBRecordEditor(PilotRecord*r, int n, TQWidget *parent)
: KDialogBase(parent, "RecordEditor",false,i18n("Edit Record"),
Ok|Cancel), rec(r), nr(n)
{
// fWidget=new DBRecordEditorBase(this);
- fWidget=new QWidget(this);
+ fWidget=new TQWidget(this);
setMainWidget(fWidget);
fBuffer = new char[4096];
@@ -119,46 +119,46 @@ void DBRecordEditor::initWidgets()
{
// FUNCTIONSETUP
- DBRecordEditorBaseLayout = new QGridLayout( fWidget, 1, 1, 11, 6, "DBRecordEditorBaseLayout");
+ DBRecordEditorBaseLayout = new TQGridLayout( fWidget, 1, 1, 11, 6, "DBRecordEditorBaseLayout");
- fRecordIndexLabel = new QLabel( fWidget, "fRecordIndexLabel" );
+ fRecordIndexLabel = new TQLabel( fWidget, "fRecordIndexLabel" );
DBRecordEditorBaseLayout->addWidget( fRecordIndexLabel, 0, 0 );
- fRecordIDLabel = new QLabel( fWidget, "fRecordIDLabel" );
+ fRecordIDLabel = new TQLabel( fWidget, "fRecordIDLabel" );
DBRecordEditorBaseLayout->addWidget( fRecordIDLabel, 0, 2 );
- fRecordIndex = new QLineEdit( fWidget, "fRecordIndex" );
+ fRecordIndex = new TQLineEdit( fWidget, "fRecordIndex" );
fRecordIndex->setReadOnly( TRUE );
DBRecordEditorBaseLayout->addWidget( fRecordIndex, 0, 1 );
- fRecordID = new QLineEdit( fWidget, "fRecordID" );
+ fRecordID = new TQLineEdit( fWidget, "fRecordID" );
fRecordID->setReadOnly( TRUE );
DBRecordEditorBaseLayout->addWidget( fRecordID, 0, 3 );
- fFlagsGroup = new QButtonGroup( fWidget, "fFlagsGroup" );
- fFlagsGroup->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5,
- (QSizePolicy::SizeType)4, 0, 0, fFlagsGroup->sizePolicy().hasHeightForWidth() ) );
+ fFlagsGroup = new TQButtonGroup( fWidget, "fFlagsGroup" );
+ fFlagsGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5,
+ (TQSizePolicy::SizeType)4, 0, 0, fFlagsGroup->sizePolicy().hasHeightForWidth() ) );
fFlagsGroup->setColumnLayout(0, Qt::Vertical );
fFlagsGroup->layout()->setSpacing( 6 );
fFlagsGroup->layout()->setMargin( 11 );
- fFlagsGroupLayout = new QGridLayout( fFlagsGroup->layout() );
+ fFlagsGroupLayout = new TQGridLayout( fFlagsGroup->layout() );
fFlagsGroupLayout->setAlignment( Qt::AlignTop );
- fDirty = new QCheckBox( fFlagsGroup, "fDirty" );
+ fDirty = new TQCheckBox( fFlagsGroup, "fDirty" );
fFlagsGroupLayout->addWidget( fDirty, 0, 0 );
- fDeleted = new QCheckBox( fFlagsGroup, "fDeleted" );
+ fDeleted = new TQCheckBox( fFlagsGroup, "fDeleted" );
fFlagsGroupLayout->addWidget( fDeleted, 1, 0 );
- fBusy = new QCheckBox( fFlagsGroup, "fBusy" );
+ fBusy = new TQCheckBox( fFlagsGroup, "fBusy" );
fFlagsGroupLayout->addWidget( fBusy, 0, 1 );
- fSecret = new QCheckBox( fFlagsGroup, "fSecret" );
+ fSecret = new TQCheckBox( fFlagsGroup, "fSecret" );
fFlagsGroupLayout->addMultiCellWidget( fSecret, 1, 1, 1, 2 );
- fArchived = new QCheckBox( fFlagsGroup, "fArchived" );
+ fArchived = new TQCheckBox( fFlagsGroup, "fArchived" );
fFlagsGroupLayout->addWidget( fArchived, 0, 2 );
DBRecordEditorBaseLayout->addMultiCellWidget( fFlagsGroup, 1, 1, 0, 3 );
@@ -190,11 +190,11 @@ void DBRecordEditor::initWidgets()
}
else
{
- QLabel*tmpW = new QLabel( i18n("To view and edit the record data, please install a hex editor (e.g. kbytesedit from kdeutils)."), fWidget );
+ TQLabel*tmpW = new TQLabel( i18n("To view and edit the record data, please install a hex editor (e.g. kbytesedit from kdeutils)."), fWidget );
tmpW->setBackgroundMode( Qt::PaletteMid );
tmpW->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter | Qt::WordBreak);
- tmpW->setFrameShape( QFrame::Panel );
- tmpW->setFrameShadow( QFrame::Sunken );
+ tmpW->setFrameShape( TQFrame::Panel );
+ tmpW->setFrameShadow( TQFrame::Sunken );
fRecordData = tmpW;
fRecordDataIf = 0;
}
@@ -202,15 +202,15 @@ void DBRecordEditor::initWidgets()
DBRecordEditorBaseLayout->addMultiCellWidget( fRecordData, 2, 2, 0, 3 );
languageChange();
- resize( QSize(600, 561).expandedTo(minimumSizeHint()) );
+ resize( TQSize(600, 561).expandedTo(minimumSizeHint()) );
}
void DBRecordEditor::fillWidgets()
{
// FUNCTIONSETUP
- fRecordIndex->setText(QString::number(nr));
- fRecordID->setText(QString::number(rec->id()));
+ fRecordIndex->setText(TQString::number(nr));
+ fRecordID->setText(TQString::number(rec->id()));
int att=rec->attributes();
fDirty->setChecked(att & dlpRecAttrDirty);