Rename old tq methods that no longer need a unique name

master
Timothy Pearson 11 years ago
parent 667d346fef
commit 8712ab46f5
  1. 8
      kuickshow/src/aboutwidget.cpp
  2. 2
      kuickshow/src/defaultswidget.cpp
  3. 2
      kuickshow/src/filecache.cpp
  4. 2
      kuickshow/src/filewidget.cpp
  5. 2
      kuickshow/src/filewidget.h
  6. 8
      kuickshow/src/imagewindow.cpp
  7. 6
      kuickshow/src/kuickfile.cpp
  8. 4
      kuickshow/src/kuickfile.h

@ -41,7 +41,7 @@ AboutWidget::AboutWidget( TQWidget *parent, const char *name )
TQGroupBox *gBox = new TQGroupBox( 1,Qt::Horizontal, this);
gBox->setGeometry( 10, 10, width()-20, height()-20 );
gBox->tqsetAlignment( AlignHCenter );
gBox->setAlignment( AlignHCenter );
gBox->installEventFilter( this );
gBox->setPalette( TQPalette( TQColor( white ) ) );
@ -57,14 +57,14 @@ AboutWidget::AboutWidget( TQWidget *parent, const char *name )
TQLabel *authors = new TQLabel("Kuickshow " KUICKSHOWVERSION
" was brought to you by", gBox);
authors->tqsetAlignment( AlignCenter );
authors->setAlignment( AlignCenter );
m_homepage = new KURLWidget("Carsten Pfeiffer", gBox);
m_homepage->setURL( "http://devel-home.kde.org/~pfeiffer/kuickshow/" );
m_homepage->tqsetAlignment( AlignCenter );
m_homepage->setAlignment( AlignCenter );
TQLabel *copy = new TQLabel("(C) 1998-2006", gBox);
copy->tqsetAlignment( AlignCenter );
copy->setAlignment( AlignCenter );
ImlibWidget *im = new ImlibWidget( 0L, gBox, "KuickShow Logo" );
if ( im->loadImage( file ) )

@ -92,7 +92,7 @@ DefaultsWidget::DefaultsWidget( TQWidget *parent, const char *name)
// --
gbPreview = new TQGroupBox( i18n("Preview"), this );
gbPreview->tqsetAlignment( AlignCenter );
gbPreview->setAlignment( AlignCenter );
lbImOrig = new TQLabel( i18n("Original"), gbPreview );
imOrig = new ImlibWidget( 0L, gbPreview, "original image" );

@ -68,7 +68,7 @@ TQString FileCache::tempDir()
KTempDir * FileCache::createTempDir()
{
TQString tmpName = TQString::tqfromLatin1( KGlobal::instance()->instanceName() );
TQString tmpName = TQString::fromLatin1( KGlobal::instance()->instanceName() );
tmpName.append( TQString::number( getpid() ) );
TQString dirName = locateLocal( "tmp", tmpName );
KTempDir *dir = new KTempDir( dirName );

@ -448,7 +448,7 @@ void FileWidget::slotFinishedLoading()
emit finished();
}
TQSize FileWidget::tqsizeHint() const
TQSize FileWidget::sizeHint() const
{
return TQSize( 300, 300 );
}

@ -71,7 +71,7 @@ protected:
virtual bool eventFilter( TQObject *o, TQEvent * );
virtual void resizeEvent( TQResizeEvent * );
virtual void activatedMenu( const KFileItem *, const TQPoint& );
virtual TQSize tqsizeHint() const;
virtual TQSize sizeHint() const;
private slots:
void slotReturnPressed( const TQString& text );

@ -1128,7 +1128,7 @@ int ImageWindow::desktopWidth( bool totalScreen ) const
{
if ( myIsFullscreen || totalScreen )
{
return KGlobalSettings::desktopGeometry(tqtopLevelWidget()).width();
return KGlobalSettings::desktopGeometry(topLevelWidget()).width();
} else
return Kuick::workArea().width();
}
@ -1137,7 +1137,7 @@ int ImageWindow::desktopWidth( bool totalScreen ) const
int ImageWindow::desktopHeight( bool totalScreen ) const
{
if ( myIsFullscreen || totalScreen ) {
return KGlobalSettings::desktopGeometry(tqtopLevelWidget()).height();
return KGlobalSettings::desktopGeometry(topLevelWidget()).height();
} else {
return Kuick::workArea().height();
}
@ -1146,7 +1146,7 @@ int ImageWindow::desktopHeight( bool totalScreen ) const
TQSize ImageWindow::maxImageSize() const
{
if ( myIsFullscreen ) {
return KGlobalSettings::desktopGeometry(tqtopLevelWidget()).size();
return KGlobalSettings::desktopGeometry(topLevelWidget()).size();
}
else {
return Kuick::workArea().size() - Kuick::frameSize( winId() );
@ -1193,7 +1193,7 @@ bool ImageWindow::canZoomTo( int newWidth, int newHeight )
if ( !ImlibWidget::canZoomTo( newWidth, newHeight ) )
return false;
TQSize desktopSize = KGlobalSettings::desktopGeometry(tqtopLevelWidget()).size();
TQSize desktopSize = KGlobalSettings::desktopGeometry(topLevelWidget()).size();
int desktopArea = desktopSize.width() * desktopSize.height();
int imageArea = newWidth * newHeight;

@ -94,7 +94,7 @@ bool KuickFile::download()
return m_job != 0L;
}
KuickFile::DownloadtqStatus KuickFile::waitForDownload( TQWidget *parent )
KuickFile::DownloadStatus KuickFile::waitForDownload( TQWidget *parent )
{
if ( isAvailable() )
return OK;
@ -152,7 +152,7 @@ void KuickFile::slotResult( KIO::Job *job )
TQString canceledFile = static_cast<KIO::FileCopyJob*>(job)->destURL().path();
TQFile::remove( canceledFile );
m_progress->tqtopLevelWidget()->hide();
m_progress->topLevelWidget()->hide();
}
else {
m_localFile = static_cast<KIO::FileCopyJob*>(job)->destURL().path();
@ -162,7 +162,7 @@ void KuickFile::slotResult( KIO::Job *job )
m_progress->setProgress( 100 );
#define BUGGY_VERSION KDE_MAKE_VERSION(3,5,2)
if ( KDE::version() <= BUGGY_VERSION ) {
m_progress->tqtopLevelWidget()->hide(); // ### workaround broken KProgressDialog
m_progress->topLevelWidget()->hide(); // ### workaround broken KProgressDialog
}
}
}

@ -27,7 +27,7 @@ class KuickFile : public TQObject
TQ_OBJECT
public:
enum DownloadtqStatus
enum DownloadStatus
{
OK = 1,
CANCELED,
@ -72,7 +72,7 @@ public:
* immediately.
* @return true when the download has finished or false when the user aborted the dialog
*/
KuickFile::DownloadtqStatus waitForDownload( TQWidget *parent );
KuickFile::DownloadStatus waitForDownload( TQWidget *parent );
// bool needsDownload();

Loading…
Cancel
Save