summaryrefslogtreecommitdiffstats
path: root/krecipes/src/dialogs/pagesetupdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krecipes/src/dialogs/pagesetupdialog.cpp')
-rw-r--r--krecipes/src/dialogs/pagesetupdialog.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/krecipes/src/dialogs/pagesetupdialog.cpp b/krecipes/src/dialogs/pagesetupdialog.cpp
index f9d004c..7957147 100644
--- a/krecipes/src/dialogs/pagesetupdialog.cpp
+++ b/krecipes/src/dialogs/pagesetupdialog.cpp
@@ -46,29 +46,29 @@ PageSetupDialog::PageSetupDialog( TQWidget *parent, const Recipe &sample, const
TDEActionCollection *actionCollection = new TDEActionCollection( this );
TDEAction *std_open = KStdAction::open( 0, 0, 0 ); //use this to create a custom open action
- TDEToolBarPopupAction *custom_open = new TDEToolBarPopupAction( std_open->text(), std_open->icon(), std_open->shortcut(), this, SLOT( loadFile() ), actionCollection, "open_popup" );
+ TDEToolBarPopupAction *custom_open = new TDEToolBarPopupAction( std_open->text(), std_open->icon(), std_open->shortcut(), this, TQ_SLOT( loadFile() ), actionCollection, "open_popup" );
TDEPopupMenu *open_popup = custom_open->popupMenu();
open_popup->insertTitle( i18n( "Styles" ) );
TQDir included_layouts( getIncludedLayoutDir(), "*.klo", TQDir::Name | TQDir::IgnoreCase, TQDir::Files );
for ( unsigned int i = 0; i < included_layouts.count(); i++ ) {
- int id = open_popup->insertItem( included_layouts[ i ].left(included_layouts[ i ].find(".")), this, SLOT( loadLayout( int ) ) );
+ int id = open_popup->insertItem( included_layouts[ i ].left(included_layouts[ i ].find(".")), this, TQ_SLOT( loadLayout( int ) ) );
included_layouts_map.insert( id, included_layouts[ i ] );
}
open_popup->insertTitle( i18n( "Templates" ) );
TQDir included_templates( getIncludedLayoutDir(), "*.template", TQDir::Name | TQDir::IgnoreCase, TQDir::Files );
for ( unsigned int i = 0; i < included_templates.count(); i++ ) {
- int id = open_popup->insertItem( included_templates[ i ].left(included_templates[ i ].find(".")).replace("_"," "), this, SLOT( loadTemplate( int ) ) );
+ int id = open_popup->insertItem( included_templates[ i ].left(included_templates[ i ].find(".")).replace("_"," "), this, TQ_SLOT( loadTemplate( int ) ) );
included_layouts_map.insert( id, included_templates[ i ] );
}
custom_open->plug( toolbar );
- KStdAction::save( this, SLOT( saveLayout() ), actionCollection ) ->plug( toolbar );
- KStdAction::saveAs( this, SLOT( saveAsLayout() ), actionCollection ) ->plug( toolbar );
- KStdAction::redisplay( this, SLOT( reloadLayout() ), actionCollection ) ->plug( toolbar );
+ KStdAction::save( this, TQ_SLOT( saveLayout() ), actionCollection ) ->plug( toolbar );
+ KStdAction::saveAs( this, TQ_SLOT( saveAsLayout() ), actionCollection ) ->plug( toolbar );
+ KStdAction::redisplay( this, TQ_SLOT( reloadLayout() ), actionCollection ) ->plug( toolbar );
TDEToolBarPopupAction *shown_items = new TDEToolBarPopupAction( i18n( "Items Shown" ), "frame_edit" );
shown_items->setDelayed( false );
@@ -88,9 +88,9 @@ PageSetupDialog::PageSetupDialog( TQWidget *parent, const Recipe &sample, const
TQPushButton *cancelButton = new TQPushButton( il.loadIconSet( "cancel", TDEIcon::Small ), i18n( "&Cancel" ), buttonsBox );
layout->addWidget( buttonsBox );
- connect( m_htmlPart, SIGNAL(itemVisibilityChanged(KreDisplayItem*,bool)), this, SLOT(updateItemVisibility(KreDisplayItem*,bool)) );
- connect( okButton, SIGNAL( clicked() ), SLOT( accept() ) );
- connect( cancelButton, SIGNAL( clicked() ), SLOT( reject() ) );
+ connect( m_htmlPart, TQ_SIGNAL(itemVisibilityChanged(KreDisplayItem*,bool)), this, TQ_SLOT(updateItemVisibility(KreDisplayItem*,bool)) );
+ connect( okButton, TQ_SIGNAL( clicked() ), TQ_SLOT( accept() ) );
+ connect( cancelButton, TQ_SIGNAL( clicked() ), TQ_SLOT( reject() ) );
TDEConfig *config = TDEGlobal::config();
config->setGroup( "Page Setup" );
@@ -178,7 +178,7 @@ void PageSetupDialog::initShownItems()
if ( properties[item] & SetupDisplay::Visibility ) {
int new_id = shown_items_popup->insertItem ( *it );
shown_items_popup->setItemChecked( new_id, item->show );
- shown_items_popup->connectItem( new_id, this, SLOT( setItemShown( int ) ) );
+ shown_items_popup->connectItem( new_id, this, TQ_SLOT( setItemShown( int ) ) );
popup_widget_map.insert( new_id, item );
widget_popup_map.insert( item, new_id );