summaryrefslogtreecommitdiffstats
path: root/src/mergeelements.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mergeelements.cpp')
-rw-r--r--src/mergeelements.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mergeelements.cpp b/src/mergeelements.cpp
index 3a7f3d3..8120212 100644
--- a/src/mergeelements.cpp
+++ b/src/mergeelements.cpp
@@ -128,7 +128,7 @@ namespace KBibTeX
MergeElements::~MergeElements()
{
- TDEConfig * config = kapp->config();
+ TDEConfig * config = tdeApp->config();
config->setGroup( "MergeElements" );
saveWindowSize( config );
}
@@ -167,10 +167,10 @@ namespace KBibTeX
vboxLayout->setStretchFactor( m_listViewAlternatives, 3 );
label->setBuddy( m_listViewAlternatives );
- connect( m_listViewClique, SIGNAL( doubleClicked( TQListViewItem * ) ), this, SLOT( slotPreviewElement( TQListViewItem * ) ) );
- connect( this, SIGNAL( user1Clicked() ), this, SLOT( slotNextClique() ) );
- connect( this, SIGNAL( user2Clicked() ), this, SLOT( slotPreviousClique() ) );
- connect( this, SIGNAL( okClicked() ), this, SLOT( saveCurrentMergeSet() ) );
+ connect( m_listViewClique, TQ_SIGNAL( doubleClicked( TQListViewItem * ) ), this, TQ_SLOT( slotPreviewElement( TQListViewItem * ) ) );
+ connect( this, TQ_SIGNAL( user1Clicked() ), this, TQ_SLOT( slotNextClique() ) );
+ connect( this, TQ_SIGNAL( user2Clicked() ), this, TQ_SLOT( slotPreviousClique() ) );
+ connect( this, TQ_SIGNAL( okClicked() ), this, TQ_SLOT( saveCurrentMergeSet() ) );
}
void MergeElements::setClique( int cliqueIndex )
@@ -188,7 +188,7 @@ namespace KBibTeX
if ( entry != NULL )
{
MergeElementsCliqueItem *item = new MergeElementsCliqueItem( entry, NULL, NULL, m_listViewClique );
- connect( item, SIGNAL( stateChanged( MergeElementsCliqueItem* ) ), this, SLOT( slotRefreshAlternatives() ) );
+ connect( item, TQ_SIGNAL( stateChanged( MergeElementsCliqueItem* ) ), this, TQ_SLOT( slotRefreshAlternatives() ) );
}
else
{
@@ -196,7 +196,7 @@ namespace KBibTeX
if ( macro != NULL )
{
MergeElementsCliqueItem *item = new MergeElementsCliqueItem( NULL, macro, NULL, m_listViewClique );
- connect( item, SIGNAL( stateChanged( MergeElementsCliqueItem* ) ), this, SLOT( slotRefreshAlternatives() ) );
+ connect( item, TQ_SIGNAL( stateChanged( MergeElementsCliqueItem* ) ), this, TQ_SLOT( slotRefreshAlternatives() ) );
}
else
{
@@ -204,7 +204,7 @@ namespace KBibTeX
if ( preamble!=NULL )
{
MergeElementsCliqueItem *item = new MergeElementsCliqueItem( NULL, NULL, preamble, m_listViewClique );
- connect( item, SIGNAL( stateChanged( MergeElementsCliqueItem* ) ), this, SLOT( slotRefreshAlternatives() ) );
+ connect( item, TQ_SIGNAL( stateChanged( MergeElementsCliqueItem* ) ), this, TQ_SLOT( slotRefreshAlternatives() ) );
}
}
}
@@ -761,11 +761,11 @@ namespace KBibTeX
{
MergeElementsCliqueItem *meci = dynamic_cast<MergeElementsCliqueItem*>( item );
if ( meci != NULL && meci->entry != NULL )
- KBibTeX::EntryWidget::execute( meci->entry, NULL, TRUE, FALSE, this );
+ KBibTeX::EntryWidget::execute( meci->entry, NULL, true, false, this );
else if ( meci != NULL && meci->macro != NULL )
- KBibTeX::MacroWidget::execute( meci->macro, TRUE, this );
+ KBibTeX::MacroWidget::execute( meci->macro, true, this );
else if ( meci!=NULL&& meci->preamble!=NULL )
- KBibTeX::PreambleWidget::execute( meci->preamble, TRUE, this );
+ KBibTeX::PreambleWidget::execute( meci->preamble, true, this );
}
/* This function was taken form TDEMainWindow of KDE 3.5 and modified to fit KBibTeX */
@@ -774,7 +774,7 @@ namespace KBibTeX
int scnum = TQApplication::desktop()->screenNumber( parentWidget() );
TQRect desk = TQApplication::desktop()->screenGeometry( scnum );
int w, h;
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
// save maximalization as desktop size + 1 in that direction
KWin::WindowInfo info = KWin::windowInfo( winId(), NET::WMState );
w = info.state() & NET::MaxHoriz ? desk.width() + 1 : width();
@@ -805,13 +805,13 @@ namespace KBibTeX
void MergeElements::showEvent( TQShowEvent * )
{
tqDebug( "showEvent" );
- TQTimer::singleShot( 10, this, SLOT( slotRestore() ) );
+ TQTimer::singleShot( 10, this, TQ_SLOT( slotRestore() ) );
}
void MergeElements::slotRestore()
{
tqDebug( "slotRestore" );
- TDEConfig * config = kapp->config();
+ TDEConfig * config = tdeApp->config();
config->setGroup( "MergeElements" );
restoreWindowSize( config );
}
@@ -838,7 +838,7 @@ namespace KBibTeX
}
if ( !size.isEmpty() )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
int state = ( size.width() > desk.width() ? NET::MaxHoriz : 0 )
| ( size.height() > desk.height() ? NET::MaxVert : 0 );
if (( state & NET::Max ) == NET::Max )