diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:02:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:02:43 -0600 |
commit | aea627236e4de24599c3e30617cf264c3c1b7d40 (patch) | |
tree | 467e13ca5a7eb0ab292259289ecc3572f53c5eae /kugar | |
parent | 786304c6211f35ddc4cdd54b7aa7985fef4a2e70 (diff) | |
download | koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.tar.gz koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kugar')
-rw-r--r-- | kugar/kudesigner/kudesigner_view.cpp | 28 | ||||
-rw-r--r-- | kugar/kudesigner/kudesigner_view.h | 48 | ||||
-rw-r--r-- | kugar/kudesigner_lib/structurewidget.cpp | 14 | ||||
-rw-r--r-- | kugar/kudesigner_lib/structurewidget.h | 2 |
4 files changed, 46 insertions, 46 deletions
diff --git a/kugar/kudesigner/kudesigner_view.cpp b/kugar/kudesigner/kudesigner_view.cpp index 991d8304..a4a35e38 100644 --- a/kugar/kudesigner/kudesigner_view.cpp +++ b/kugar/kudesigner/kudesigner_view.cpp @@ -182,45 +182,45 @@ void KudesignerView::initActions() copyAction = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT( copy() ), actionCollection() ); pasteAction = KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT( paste() ), actionCollection() ); selectAllAction = KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( selectAll() ), actionCollection() ); - deleteAction = new KAction( i18n( "Delete" ), "editdelete", 0, TQT_TQOBJECT(this), + deleteAction = new TDEAction( i18n( "Delete" ), "editdelete", 0, TQT_TQOBJECT(this), TQT_SLOT( deleteItems() ), actionCollection(), "edit_delete" ); cutAction->setEnabled( false ); copyAction->setEnabled( false ); pasteAction->setEnabled( false ); // deleteAction->setEnabled(false); - sectionsReportHeader = new KAction( i18n( "Report Header" ), "irh", 0, TQT_TQOBJECT(this), + sectionsReportHeader = new TDEAction( i18n( "Report Header" ), "irh", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddReportHeader() ), actionCollection(), "rheader" ); - sectionsReportFooter = new KAction( i18n( "Report Footer" ), "irf", 0, TQT_TQOBJECT(this), + sectionsReportFooter = new TDEAction( i18n( "Report Footer" ), "irf", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddReportFooter() ), actionCollection(), "rfooter" ); - sectionsPageHeader = new KAction( i18n( "Page Header" ), "iph", 0, TQT_TQOBJECT(this), + sectionsPageHeader = new TDEAction( i18n( "Page Header" ), "iph", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddPageHeader() ), actionCollection(), "pheader" ); - sectionsPageFooter = new KAction( i18n( "Page Footer" ), "ipf", 0, TQT_TQOBJECT(this), + sectionsPageFooter = new TDEAction( i18n( "Page Footer" ), "ipf", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddPageFooter() ), actionCollection(), "pfooter" ); - sectionsDetailHeader = new KAction( i18n( "Detail Header" ), "idh", 0, TQT_TQOBJECT(this), + sectionsDetailHeader = new TDEAction( i18n( "Detail Header" ), "idh", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddDetailHeader() ), actionCollection(), "dheader" ); - sectionsDetail = new KAction( i18n( "Detail" ), "id", 0, TQT_TQOBJECT(this), + sectionsDetail = new TDEAction( i18n( "Detail" ), "id", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddDetail() ), actionCollection(), "detail" ); - sectionsDetailFooter = new KAction( i18n( "Detail Footer" ), "idf", 0, TQT_TQOBJECT(this), + sectionsDetailFooter = new TDEAction( i18n( "Detail Footer" ), "idf", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddDetailFooter() ), actionCollection(), "dfooter" ); - itemsNothing = new KRadioAction( i18n( "Clear Selection" ), "frame_edit", 0, TQT_TQOBJECT(this), + itemsNothing = new TDERadioAction( i18n( "Clear Selection" ), "frame_edit", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddItemNothing() ), actionCollection(), "nothing" ); itemsNothing->setExclusiveGroup( "itemsToolBar" ); itemsNothing->setChecked( true ); - itemsLabel = new KRadioAction( i18n( "Label" ), "frame_text", 0, TQT_TQOBJECT(this), + itemsLabel = new TDERadioAction( i18n( "Label" ), "frame_text", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddItemLabel() ), actionCollection(), "label" ); itemsLabel->setExclusiveGroup( "itemsToolBar" ); - itemsField = new KRadioAction( i18n( "Field" ), "frame_field", 0, TQT_TQOBJECT(this), + itemsField = new TDERadioAction( i18n( "Field" ), "frame_field", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddItemField() ), actionCollection(), "field" ); itemsField->setExclusiveGroup( "itemsToolBar" ); - itemsSpecial = new KRadioAction( i18n( "Special Field" ), "frame_query", 0, TQT_TQOBJECT(this), + itemsSpecial = new TDERadioAction( i18n( "Special Field" ), "frame_query", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddItemSpecial() ), actionCollection(), "special" ); itemsSpecial->setExclusiveGroup( "itemsToolBar" ); - itemsCalculated = new KRadioAction( i18n( "Calculated Field" ), "frame_formula", 0, TQT_TQOBJECT(this), + itemsCalculated = new TDERadioAction( i18n( "Calculated Field" ), "frame_formula", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddItemCalculated() ), actionCollection(), "calcfield" ); itemsCalculated->setExclusiveGroup( "itemsToolBar" ); - itemsLine = new KRadioAction( i18n( "Line" ), "frame_chart", 0, TQT_TQOBJECT(this), + itemsLine = new TDERadioAction( i18n( "Line" ), "frame_chart", 0, TQT_TQOBJECT(this), TQT_SLOT( slotAddItemLine() ), actionCollection(), "line" ); itemsLine->setExclusiveGroup( "itemsToolBar" ); diff --git a/kugar/kudesigner/kudesigner_view.h b/kugar/kudesigner/kudesigner_view.h index 387996f5..8eafe0bb 100644 --- a/kugar/kudesigner/kudesigner_view.h +++ b/kugar/kudesigner/kudesigner_view.h @@ -33,8 +33,8 @@ class TQPaintEvent; class TQDockWindow; class TQToolBar; -class KAction; -class KRadioAction; +class TDEAction; +class TDERadioAction; class KWidgetAction; class KudesignerDoc; @@ -108,34 +108,34 @@ private: KudesignerDoc *m_doc; - KAction* sectionsReportHeader; - KAction* sectionsReportFooter; - KAction* sectionsPageFooter; - KAction* sectionsPageHeader; - KAction* sectionsDetailHeader; - KAction* sectionsDetail; - KAction* sectionsDetailFooter; - - KRadioAction* itemsNothing; - KRadioAction* itemsLabel; - KRadioAction* itemsField; - KRadioAction* itemsSpecial; - KRadioAction* itemsCalculated; - KRadioAction* itemsLine; - - KAction* cutAction; - KAction* copyAction; - KAction* pasteAction; - KAction* selectAllAction; - KAction* deleteAction; + TDEAction* sectionsReportHeader; + TDEAction* sectionsReportFooter; + TDEAction* sectionsPageFooter; + TDEAction* sectionsPageHeader; + TDEAction* sectionsDetailHeader; + TDEAction* sectionsDetail; + TDEAction* sectionsDetailFooter; + + TDERadioAction* itemsNothing; + TDERadioAction* itemsLabel; + TDERadioAction* itemsField; + TDERadioAction* itemsSpecial; + TDERadioAction* itemsCalculated; + TDERadioAction* itemsLine; + + TDEAction* cutAction; + TDEAction* copyAction; + TDEAction* pasteAction; + TDEAction* selectAllAction; + TDEAction* deleteAction; KWidgetAction *gridActionLabel; KWidgetAction *gridAction; TQLabel *gridLabel; TQSpinBox *gridBox; - KActionCollection *itemsCollection; - KActionCollection *sectionsCollection; + TDEActionCollection *itemsCollection; + TDEActionCollection *sectionsCollection; }; #endif diff --git a/kugar/kudesigner_lib/structurewidget.cpp b/kugar/kudesigner_lib/structurewidget.cpp index 01b4289e..a78db689 100644 --- a/kugar/kudesigner_lib/structurewidget.cpp +++ b/kugar/kudesigner_lib/structurewidget.cpp @@ -42,14 +42,14 @@ namespace Kudesigner using namespace KoProperty; -class StructureItem: public KListViewItem +class StructureItem: public TDEListViewItem { public: - StructureItem( KListView *parent, const TQString &name ) - : KListViewItem( parent, name ), m_bold( false ) + StructureItem( TDEListView *parent, const TQString &name ) + : TDEListViewItem( parent, name ), m_bold( false ) {} - StructureItem( KListViewItem *parent, const TQString &name ) - : KListViewItem( parent, name ), m_bold( false ) + StructureItem( TDEListViewItem *parent, const TQString &name ) + : TDEListViewItem( parent, name ), m_bold( false ) {} void setBold( bool b ) { @@ -68,7 +68,7 @@ public: f.setWeight( 75 ); p->setFont( f ); } - KListViewItem::paintCell( p, cg, column, width, align ); + TDEListViewItem::paintCell( p, cg, column, width, align ); } private: @@ -76,7 +76,7 @@ private: }; StructureWidget::StructureWidget( TQWidget* parent, const char* name ) - : KListView( parent, name ) + : TDEListView( parent, name ) { setFullWidth( true ); addColumn( tr( "Report Structure" ) ); diff --git a/kugar/kudesigner_lib/structurewidget.h b/kugar/kudesigner_lib/structurewidget.h index 177742eb..d81fc833 100644 --- a/kugar/kudesigner_lib/structurewidget.h +++ b/kugar/kudesigner_lib/structurewidget.h @@ -34,7 +34,7 @@ class Band; class Canvas; class StructureItem; -class StructureWidget: public KListView +class StructureWidget: public TDEListView { Q_OBJECT |