rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kuickshow@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 15186eff1e
commit b3b99429af

@ -31,8 +31,8 @@
#include "aboutwidget.h" #include "aboutwidget.h"
AboutWidget::AboutWidget( TQWidget *tqparent, const char *name ) AboutWidget::AboutWidget( TQWidget *parent, const char *name )
: TQVBox( tqparent, name, TQt::WShowModal ) : TQVBox( parent, name, TQt::WShowModal )
{ {
KWin::setType( winId(), NET::Override ); KWin::setType( winId(), NET::Override );
KWin::setState( winId(), NET::SkipTaskbar ); KWin::setState( winId(), NET::SkipTaskbar );

@ -30,7 +30,7 @@ class AboutWidget : public TQVBox
TQ_OBJECT TQ_OBJECT
public: public:
AboutWidget(TQWidget *tqparent = 0, const char *name = 0); AboutWidget(TQWidget *parent = 0, const char *name = 0);
protected: protected:
~AboutWidget(); ~AboutWidget();

@ -31,8 +31,8 @@
#include "imlibwidget.h" #include "imlibwidget.h"
#include "defaultswidget.h" #include "defaultswidget.h"
DefaultsWidget::DefaultsWidget( TQWidget *tqparent, const char *name) DefaultsWidget::DefaultsWidget( TQWidget *parent, const char *name)
: TQWidget( tqparent, name ) : TQWidget( parent, name )
{ {
imFiltered = 0L; imFiltered = 0L;

@ -36,7 +36,7 @@ class DefaultsWidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
DefaultsWidget( TQWidget *tqparent, const char *name ); DefaultsWidget( TQWidget *parent, const char *name );
~DefaultsWidget(); ~DefaultsWidget();
void loadSettings( const KuickData& data ); void loadSettings( const KuickData& data );

@ -26,8 +26,8 @@
#include "filefinder.h" #include "filefinder.h"
FileFinder::FileFinder( TQWidget *tqparent, const char *name ) FileFinder::FileFinder( TQWidget *parent, const char *name )
: KLineEdit( tqparent, name ) : KLineEdit( parent, name )
{ {
// make this widget just as large, as the font is + 8 Pixels // make this widget just as large, as the font is + 8 Pixels
int height = fontMetrics().height() + 8; int height = fontMetrics().height() + 8;

@ -31,7 +31,7 @@ class FileFinder : public KLineEdit
TQ_OBJECT TQ_OBJECT
public: public:
FileFinder( TQWidget *tqparent=0, const char *name=0 ); FileFinder( TQWidget *parent=0, const char *name=0 );
~FileFinder(); ~FileFinder();
KURLCompletion *completion() { KURLCompletion *completion() {

@ -35,8 +35,8 @@
#undef KeyPress #undef KeyPress
#endif #endif
FileWidget::FileWidget( const KURL& url, TQWidget *tqparent, const char *name ) FileWidget::FileWidget( const KURL& url, TQWidget *parent, const char *name )
: KDirOperator( url, tqparent, name ), : KDirOperator( url, parent, name ),
m_validCompletion( false ), m_validCompletion( false ),
m_fileFinder( 0L ) m_fileFinder( 0L )
{ {

@ -34,7 +34,7 @@ class FileWidget : public KDirOperator
public: public:
enum WhichItem { Previous, Next, Current }; enum WhichItem { Previous, Next, Current };
FileWidget( const KURL& url, TQWidget *tqparent = 0L, const char *name = 0L ); FileWidget( const KURL& url, TQWidget *parent = 0L, const char *name = 0L );
~FileWidget(); ~FileWidget();
bool hasFiles() const; bool hasFiles() const;

@ -33,8 +33,8 @@
#include "generalwidget.h" #include "generalwidget.h"
GeneralWidget::GeneralWidget( TQWidget *tqparent, const char *name ) GeneralWidget::GeneralWidget( TQWidget *parent, const char *name )
: TQWidget( tqparent, name ) : TQWidget( parent, name )
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); TQVBoxLayout *tqlayout = new TQVBoxLayout( this );
tqlayout->setSpacing( KDialog::spacingHint() ); tqlayout->setSpacing( KDialog::spacingHint() );

@ -35,7 +35,7 @@ class GeneralWidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
GeneralWidget( TQWidget *tqparent, const char *name ); GeneralWidget( TQWidget *parent, const char *name );
~GeneralWidget(); ~GeneralWidget();
void loadSettings( const KuickData& data ); void loadSettings( const KuickData& data );

@ -74,15 +74,15 @@
TQCursor *ImageWindow::s_handCursor = 0L; TQCursor *ImageWindow::s_handCursor = 0L;
ImageWindow::ImageWindow( ImData *_idata, ImlibData *id, TQWidget *tqparent, ImageWindow::ImageWindow( ImData *_idata, ImlibData *id, TQWidget *parent,
const char *name ) const char *name )
: ImlibWidget( _idata, id, tqparent, name ) : ImlibWidget( _idata, id, parent, name )
{ {
init(); init();
} }
ImageWindow::ImageWindow( ImData *_idata, TQWidget *tqparent, const char *name ) ImageWindow::ImageWindow( ImData *_idata, TQWidget *parent, const char *name )
: ImlibWidget( _idata, tqparent, name ) : ImlibWidget( _idata, parent, name )
{ {
init(); init();
} }

@ -41,9 +41,9 @@ class ImageWindow : public ImlibWidget
TQ_OBJECT TQ_OBJECT
public: public:
ImageWindow( ImData *_idata, ImlibData *id, TQWidget *tqparent=0, ImageWindow( ImData *_idata, ImlibData *id, TQWidget *parent=0,
const char *name=0 ); const char *name=0 );
ImageWindow( ImData *_idata=0, TQWidget *tqparent=0, const char *name=0 ); ImageWindow( ImData *_idata=0, TQWidget *parent=0, const char *name=0 );
bool showNextImage( KuickFile * file ); bool showNextImage( KuickFile * file );
bool showNextImage( const KURL& url ); bool showNextImage( const KURL& url );

@ -43,8 +43,8 @@
const int ImlibWidget::ImlibOffset = 256; const int ImlibWidget::ImlibOffset = 256;
ImlibWidget::ImlibWidget( ImData *_idata, TQWidget *tqparent, const char *name ) : ImlibWidget::ImlibWidget( ImData *_idata, TQWidget *parent, const char *name ) :
TQWidget( tqparent, name, WDestructiveClose ) TQWidget( parent, name, WDestructiveClose )
{ {
idata = _idata; idata = _idata;
deleteImData = false; deleteImData = false;
@ -82,9 +82,9 @@ ImlibWidget::ImlibWidget( ImData *_idata, TQWidget *tqparent, const char *name )
} }
ImlibWidget::ImlibWidget( ImData *_idata, ImlibData *_id, TQWidget *tqparent, ImlibWidget::ImlibWidget( ImData *_idata, ImlibData *_id, TQWidget *parent,
const char *name ) const char *name )
: TQWidget( tqparent, name, WDestructiveClose ) : TQWidget( parent, name, WDestructiveClose )
{ {
id = _id; id = _id;
idata = _idata; idata = _idata;
@ -525,13 +525,13 @@ void ImlibWidget::restoreCursor()
// destroying the Imlib image X window. Therefore it needs to be temporarily reparented // destroying the Imlib image X window. Therefore it needs to be temporarily reparented
// away and reparented back to the new X window. // away and reparented back to the new X window.
// Reparenting may happen e.g. when doing the old-style (non-NETWM) fullscreen changes. // Reparenting may happen e.g. when doing the old-style (non-NETWM) fullscreen changes.
void ImlibWidget::reparent( TQWidget* tqparent, WFlags f, const TQPoint& p, bool showIt ) void ImlibWidget::reparent( TQWidget* parent, WFlags f, const TQPoint& p, bool showIt )
{ {
XWindowAttributes attr; XWindowAttributes attr;
XGetWindowAttributes( x11Display(), win, &attr ); XGetWindowAttributes( x11Display(), win, &attr );
XUnmapWindow( x11Display(), win ); XUnmapWindow( x11Display(), win );
XReparentWindow( x11Display(), win, attr.root, 0, 0 ); XReparentWindow( x11Display(), win, attr.root, 0, 0 );
TQWidget::reparent( tqparent, f, p, showIt ); TQWidget::reparent( parent, f, p, showIt );
XReparentWindow( x11Display(), win, winId(), attr.x, attr.y ); XReparentWindow( x11Display(), win, winId(), attr.x, attr.y );
if( attr.map_state != IsUnmapped ) if( attr.map_state != IsUnmapped )
XMapWindow( x11Display(), win ); XMapWindow( x11Display(), win );

@ -80,8 +80,8 @@ class ImlibWidget : public TQWidget
public: public:
ImlibWidget( ImData *_idata=0, TQWidget *tqparent=0, const char *name=0 ); ImlibWidget( ImData *_idata=0, TQWidget *parent=0, const char *name=0 );
ImlibWidget( ImData *_idata, ImlibData *id, TQWidget *tqparent=0, ImlibWidget( ImData *_idata, ImlibData *id, TQWidget *parent=0,
const char *name=0 ); const char *name=0 );
virtual ~ImlibWidget(); virtual ~ImlibWidget();
@ -121,7 +121,7 @@ public:
ImlibData* getImlibData() const { return id; } ImlibData* getImlibData() const { return id; }
virtual void reparent( TQWidget* tqparent, WFlags f, const TQPoint& p, bool showIt = FALSE ); virtual void reparent( TQWidget* parent, WFlags f, const TQPoint& p, bool showIt = FALSE );
public slots: public slots:
void rotate90(); void rotate90();

@ -38,11 +38,11 @@
#include "kuickdata.h" #include "kuickdata.h"
KuickConfigDialog::KuickConfigDialog( KActionCollection *_coll, TQWidget *tqparent, KuickConfigDialog::KuickConfigDialog( KActionCollection *_coll, TQWidget *parent,
const char *name, bool modal ) const char *name, bool modal )
: KDialogBase( Tabbed, i18n("Configure"), : KDialogBase( Tabbed, i18n("Configure"),
Help | Default | Ok | Apply | Cancel, Ok, Help | Default | Ok | Apply | Cancel, Ok,
tqparent, name, modal ) parent, name, modal )
{ {
coll = _coll; coll = _coll;
TQVBox *box = addVBoxPage( i18n("&General") ); TQVBox *box = addVBoxPage( i18n("&General") );

@ -36,7 +36,7 @@ class KuickConfigDialog : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
KuickConfigDialog( KActionCollection *coll, TQWidget *tqparent=0, KuickConfigDialog( KActionCollection *coll, TQWidget *parent=0,
const char *name=0, bool modal=true); const char *name=0, bool modal=true);
~KuickConfigDialog(); ~KuickConfigDialog();

@ -94,7 +94,7 @@ bool KuickFile::download()
return m_job != 0L; return m_job != 0L;
} }
KuickFile::DownloadtqStatus KuickFile::waitForDownload( TQWidget *tqparent ) KuickFile::DownloadtqStatus KuickFile::waitForDownload( TQWidget *parent )
{ {
if ( isAvailable() ) if ( isAvailable() )
return OK; return OK;
@ -104,7 +104,7 @@ KuickFile::DownloadtqStatus KuickFile::waitForDownload( TQWidget *tqparent )
return ERROR; return ERROR;
} }
KProgressDialog *dialog = new KProgressDialog( tqparent ); KProgressDialog *dialog = new KProgressDialog( parent );
dialog->setModal( true ); dialog->setModal( true );
dialog->setCaption( i18n("Downloading %1...").tqarg( m_url.fileName() ) ); dialog->setCaption( i18n("Downloading %1...").tqarg( m_url.fileName() ) );
dialog->setLabel( i18n("Please wait while downloading\n%1").tqarg( m_url.prettyURL() )); dialog->setLabel( i18n("Please wait while downloading\n%1").tqarg( m_url.prettyURL() ));

@ -72,7 +72,7 @@ public:
* immediately. * immediately.
* @return true when the download has finished or false when the user aborted the dialog * @return true when the download has finished or false when the user aborted the dialog
*/ */
KuickFile::DownloadtqStatus waitForDownload( TQWidget *tqparent ); KuickFile::DownloadtqStatus waitForDownload( TQWidget *parent );
// bool needsDownload(); // bool needsDownload();

@ -631,7 +631,7 @@ void KuickShow::slotTrashCurrentImage(ImageWindow *viewer)
performTrashCurrentImage(viewer); performTrashCurrentImage(viewer);
} }
void KuickShow::performDeleteCurrentImage(TQWidget *tqparent) void KuickShow::performDeleteCurrentImage(TQWidget *parent)
{ {
assert(fileWidget != 0L); assert(fileWidget != 0L);
@ -640,7 +640,7 @@ void KuickShow::performDeleteCurrentImage(TQWidget *tqparent)
list.append (item); list.append (item);
if (KMessageBox::warningContinueCancel( if (KMessageBox::warningContinueCancel(
tqparent, parent,
i18n("<qt>Do you really want to delete\n <b>'%1'</b>?</qt>").tqarg(item->url().pathOrURL()), i18n("<qt>Do you really want to delete\n <b>'%1'</b>?</qt>").tqarg(item->url().pathOrURL()),
i18n("Delete File"), i18n("Delete File"),
KStdGuiItem::del(), KStdGuiItem::del(),
@ -654,7 +654,7 @@ void KuickShow::performDeleteCurrentImage(TQWidget *tqparent)
fileWidget->del(list, false, false); fileWidget->del(list, false, false);
} }
void KuickShow::performTrashCurrentImage(TQWidget *tqparent) void KuickShow::performTrashCurrentImage(TQWidget *parent)
{ {
assert(fileWidget != 0L); assert(fileWidget != 0L);
@ -665,7 +665,7 @@ void KuickShow::performTrashCurrentImage(TQWidget *tqparent)
list.append (item); list.append (item);
if (KMessageBox::warningContinueCancel( if (KMessageBox::warningContinueCancel(
tqparent, parent,
i18n("<qt>Do you really want to trash\n <b>'%1'</b>?</qt>").tqarg(item->url().pathOrURL()), i18n("<qt>Do you really want to trash\n <b>'%1'</b>?</qt>").tqarg(item->url().pathOrURL()),
i18n("Trash File"), i18n("Trash File"),
KGuiItem(i18n("to trash", "&Trash"),"edittrash"), KGuiItem(i18n("to trash", "&Trash"),"edittrash"),
@ -676,7 +676,7 @@ void KuickShow::performTrashCurrentImage(TQWidget *tqparent)
} }
tryShowNextImage(); tryShowNextImage();
fileWidget->trash(list, tqparent, false, false); fileWidget->trash(list, parent, false, false);
} }
void KuickShow::tryShowNextImage() void KuickShow::tryShowNextImage()

@ -156,8 +156,8 @@ private:
void delayAction(DelayedRepeatEvent *event); void delayAction(DelayedRepeatEvent *event);
void replayAdvance(DelayedRepeatEvent *event); void replayAdvance(DelayedRepeatEvent *event);
void performDeleteCurrentImage(TQWidget *tqparent); void performDeleteCurrentImage(TQWidget *parent);
void performTrashCurrentImage(TQWidget *tqparent); void performTrashCurrentImage(TQWidget *parent);
uint viewItem, renameItem, deleteItem, printItem; uint viewItem, renameItem, deleteItem, printItem;
uint m_slideshowCycle; uint m_slideshowCycle;

@ -23,8 +23,8 @@
#include "kurlwidget.h" #include "kurlwidget.h"
KURLWidget::KURLWidget(const TQString& text, TQWidget *tqparent, const char *name) KURLWidget::KURLWidget(const TQString& text, TQWidget *parent, const char *name)
: KURLLabel( tqparent, name ) : KURLLabel( parent, name )
{ {
setText( text ); setText( text );
connect( this, TQT_SIGNAL( leftClickedURL() ), TQT_SLOT( run() )); connect( this, TQT_SIGNAL( leftClickedURL() ), TQT_SLOT( run() ));

@ -21,8 +21,8 @@
#include "mainwidget.h" #include "mainwidget.h"
MainWidget::MainWidget( TQString startDir, TQWidget *tqparent, MainWidget::MainWidget( TQString startDir, TQWidget *parent,
const char *name ) : TQWidget ( tqparent, name ) const char *name ) : TQWidget ( parent, name )
{ {
box = new FileView( startDir, true, (TQDir::Dirs | TQDir::Files), box = new FileView( startDir, true, (TQDir::Dirs | TQDir::Files),
this, "fileview" ); this, "fileview" );

@ -31,7 +31,7 @@ class MainWidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
MainWidget( TQString, TQWidget *tqparent, const char *name=0L); MainWidget( TQString, TQWidget *parent, const char *name=0L);
~MainWidget(); ~MainWidget();
FileView* getFileBox() { return box; } FileView* getFileBox() { return box; }

@ -43,16 +43,16 @@
#include "printing.h" #include "printing.h"
#include "version.h" #include "version.h"
bool Printing::printImage( ImageWindow& imageWin, TQWidget *tqparent ) bool Printing::printImage( ImageWindow& imageWin, TQWidget *parent )
{ {
TQString imageURL = imageWin.url().prettyURL(); TQString imageURL = imageWin.url().prettyURL();
KPrinter printer; KPrinter printer;
printer.setDocName( imageURL ); printer.setDocName( imageURL );
printer.setCreator( "KuickShow-" KUICKSHOWVERSION ); printer.setCreator( "KuickShow-" KUICKSHOWVERSION );
KPrinter::addDialogPage( new KuickPrintDialogPage( tqparent, "kuick page")); KPrinter::addDialogPage( new KuickPrintDialogPage( parent, "kuick page"));
if ( printer.setup( tqparent, i18n("Print %1").tqarg(printer.docName().section('/', -1)) ) ) if ( printer.setup( parent, i18n("Print %1").tqarg(printer.docName().section('/', -1)) ) )
{ {
KTempFile tmpFile( TQString(), ".png" ); KTempFile tmpFile( TQString(), ".png" );
if ( tmpFile.status() == 0 ) if ( tmpFile.status() == 0 )
@ -194,8 +194,8 @@ TQString Printing::minimizeString( TQString text, const TQFontMetrics&
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
KuickPrintDialogPage::KuickPrintDialogPage( TQWidget *tqparent, const char *name ) KuickPrintDialogPage::KuickPrintDialogPage( TQWidget *parent, const char *name )
: KPrintDialogPage( tqparent, name ) : KPrintDialogPage( parent, name )
{ {
setTitle( i18n("Image Settings") ); setTitle( i18n("Image Settings") );

@ -36,7 +36,7 @@ class ImageWindow;
class Printing class Printing
{ {
public: public:
static bool printImage( ImageWindow& imageWin, TQWidget *tqparent = 0L); static bool printImage( ImageWindow& imageWin, TQWidget *parent = 0L);
static bool printImageWithTQt( const TQString& filename, KPrinter& printer, static bool printImageWithTQt( const TQString& filename, KPrinter& printer,
const TQString& originalFileName ); const TQString& originalFileName );
@ -53,7 +53,7 @@ class KuickPrintDialogPage : public KPrintDialogPage
TQ_OBJECT TQ_OBJECT
public: public:
KuickPrintDialogPage( TQWidget *tqparent = 0L, const char *name = 0 ); KuickPrintDialogPage( TQWidget *parent = 0L, const char *name = 0 );
~KuickPrintDialogPage(); ~KuickPrintDialogPage();
virtual void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false); virtual void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);

@ -26,8 +26,8 @@
#include "slideshowwidget.h" #include "slideshowwidget.h"
SlideShowWidget::SlideShowWidget( TQWidget *tqparent, const char *name ) SlideShowWidget::SlideShowWidget( TQWidget *parent, const char *name )
: TQWidget( tqparent, name ) : TQWidget( parent, name )
{ {
// setTitle( i18n("Slideshow") ); // setTitle( i18n("Slideshow") );

@ -29,7 +29,7 @@ class SlideShowWidget : public TQWidget
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SlideShowWidget( TQWidget *tqparent, const char *name ); SlideShowWidget( TQWidget *parent, const char *name );
~SlideShowWidget(); ~SlideShowWidget();
virtual void loadSettings( const KuickData& data ); virtual void loadSettings( const KuickData& data );

Loading…
Cancel
Save