summaryrefslogtreecommitdiffstats
path: root/kbugbuster/gui/centralwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbugbuster/gui/centralwidget.cpp')
-rw-r--r--kbugbuster/gui/centralwidget.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kbugbuster/gui/centralwidget.cpp b/kbugbuster/gui/centralwidget.cpp
index f90564f1..6ceebe0f 100644
--- a/kbugbuster/gui/centralwidget.cpp
+++ b/kbugbuster/gui/centralwidget.cpp
@@ -48,18 +48,18 @@ using namespace KBugBusterMainWindow;
CentralWidget::CentralWidget( const TQCString &initialPackage,
const TQCString &initialComponent,
- const TQCString &initialBug, TQWidget *parent,
+ const TQCString &initialBug, TQWidget *tqparent,
const char * name )
- : TQWidget( parent, name )
+ : TQWidget( tqparent, name )
{
- // Master layout
+ // Master tqlayout
( new TQVBoxLayout( this, 0,
KDialog::spacingHint() ) )->setAutoAdd( true );
- // Create TQSplitter children
- m_vertSplitter = new TQSplitter( TQSplitter::Vertical, this );
+ // Create TQSplitter tqchildren
+ m_vertSplitter = new TQSplitter( Qt::Vertical, this );
m_listPane = new CWBugListContainer( m_vertSplitter );
- m_horSplitter = new TQSplitter( TQSplitter::Horizontal,m_vertSplitter );
+ m_horSplitter = new TQSplitter( Qt::Horizontal,m_vertSplitter );
// The search pane isn't used. Should we remove the code?
m_searchPane = new CWSearchWidget( m_horSplitter );
m_bugPane = new CWBugDetailsContainer( m_horSplitter );
@@ -67,7 +67,7 @@ CentralWidget::CentralWidget( const TQCString &initialPackage,
m_searchPane->hide();
// m_listPane->hide();
- m_searchPane->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum,
+ m_searchPane->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum,
TQSizePolicy::Minimum ) );
m_horSplitter->setResizeMode( m_searchPane, TQSplitter::FollowSizeHint );
@@ -188,7 +188,7 @@ void CentralWidget::writeConfig()
void CentralWidget::slotRetrieveBugList( const TQString &package )
{
- slotRetrieveBugList( package, TQString::null );
+ slotRetrieveBugList( package, TQString() );
}
void CentralWidget::slotRetrieveBugList( const TQString &p, const TQString &component )
@@ -296,14 +296,14 @@ void CentralWidget::updateBugDetails( const Bug &bug, const BugDetails &bd )
void CentralWidget::slotReloadPackageList()
{
- BugSystem::self()->cache()->invalidatePackageList();
+ BugSystem::self()->cache()->tqinvalidatePackageList();
BugSystem::self()->retrievePackageList();
}
void CentralWidget::slotReloadPackage()
{
if (!m_currentPackage.isNull()) {
- BugSystem::self()->cache()->invalidateBugList( m_currentPackage, m_currentComponent );
+ BugSystem::self()->cache()->tqinvalidateBugList( m_currentPackage, m_currentComponent );
BugSystem::self()->retrieveBugList( m_currentPackage, m_currentComponent );
}
}
@@ -316,7 +316,7 @@ void CentralWidget::slotLoadMyBugs()
void CentralWidget::slotReloadBug()
{
if (!m_currentBug.isNull()) {
- BugSystem::self()->cache()->invalidateBugDetails( m_currentBug );
+ BugSystem::self()->cache()->tqinvalidateBugDetails( m_currentBug );
BugSystem::self()->retrieveBugDetails( m_currentBug );
}
}
@@ -340,11 +340,11 @@ void CentralWidget::slotExtractAttachments()
for ( TQValueList<BugDetails::Attachment>::Iterator it = attachments.begin() ; it != attachments.end() ; ++it )
{
// Handle duplicates
- if ( fileList.contains( (*it).filename ) )
+ if ( fileList.tqcontains( (*it).filename ) )
{
int n = 2; // looks stupid to have "blah" and "1-blah", start at 2
TQString fn = TQString::number(n) + '-' + (*it).filename;
- while ( fileList.contains( fn ) )
+ while ( fileList.tqcontains( fn ) )
{
++n;
fn = TQString::number(n) + '-' + (*it).filename;
@@ -356,10 +356,10 @@ void CentralWidget::slotExtractAttachments()
int res = KMessageBox::questionYesNoList( this,
i18n("Found the following attachments. Save?"),
- fileList, TQString::null, KStdGuiItem::save(), KStdGuiItem::dontSave() );
+ fileList, TQString(), KStdGuiItem::save(), KStdGuiItem::dontSave() );
if ( res == KMessageBox::No )
return;
- TQString dir = KFileDialog::getExistingDirectory( TQString::null, this, i18n("Select Folder Where to Save Attachments") );
+ TQString dir = KFileDialog::getExistingDirectory( TQString(), this, i18n("Select Folder Where to Save Attachments") );
if ( !dir.isEmpty() )
{
if ( !dir.endsWith( "/" ) )