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"
AboutWidget::AboutWidget( TQWidget *tqparent, const char *name )
: TQVBox( tqparent, name, TQt::WShowModal )
AboutWidget::AboutWidget( TQWidget *parent, const char *name )
: TQVBox( parent, name, TQt::WShowModal )
{
KWin::setType( winId(), NET::Override );
KWin::setState( winId(), NET::SkipTaskbar );

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

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

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

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

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

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

@ -34,7 +34,7 @@ class FileWidget : public KDirOperator
public:
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();
bool hasFiles() const;

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

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

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

@ -41,9 +41,9 @@ class ImageWindow : public ImlibWidget
TQ_OBJECT
public:
ImageWindow( ImData *_idata, ImlibData *id, TQWidget *tqparent=0,
ImageWindow( ImData *_idata, ImlibData *id, TQWidget *parent=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( const KURL& url );

@ -43,8 +43,8 @@
const int ImlibWidget::ImlibOffset = 256;
ImlibWidget::ImlibWidget( ImData *_idata, TQWidget *tqparent, const char *name ) :
TQWidget( tqparent, name, WDestructiveClose )
ImlibWidget::ImlibWidget( ImData *_idata, TQWidget *parent, const char *name ) :
TQWidget( parent, name, WDestructiveClose )
{
idata = _idata;
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 )
: TQWidget( tqparent, name, WDestructiveClose )
: TQWidget( parent, name, WDestructiveClose )
{
id = _id;
idata = _idata;
@ -525,13 +525,13 @@ void ImlibWidget::restoreCursor()
// destroying the Imlib image X window. Therefore it needs to be temporarily reparented
// away and reparented back to the new X window.
// 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;
XGetWindowAttributes( x11Display(), win, &attr );
XUnmapWindow( x11Display(), win );
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 );
if( attr.map_state != IsUnmapped )
XMapWindow( x11Display(), win );

@ -80,8 +80,8 @@ class ImlibWidget : public TQWidget
public:
ImlibWidget( ImData *_idata=0, TQWidget *tqparent=0, const char *name=0 );
ImlibWidget( ImData *_idata, ImlibData *id, TQWidget *tqparent=0,
ImlibWidget( ImData *_idata=0, TQWidget *parent=0, const char *name=0 );
ImlibWidget( ImData *_idata, ImlibData *id, TQWidget *parent=0,
const char *name=0 );
virtual ~ImlibWidget();
@ -121,7 +121,7 @@ public:
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:
void rotate90();

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

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

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

@ -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 *tqparent );
KuickFile::DownloadtqStatus waitForDownload( TQWidget *parent );
// bool needsDownload();

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

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

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

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

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

@ -43,16 +43,16 @@
#include "printing.h"
#include "version.h"
bool Printing::printImage( ImageWindow& imageWin, TQWidget *tqparent )
bool Printing::printImage( ImageWindow& imageWin, TQWidget *parent )
{
TQString imageURL = imageWin.url().prettyURL();
KPrinter printer;
printer.setDocName( imageURL );
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" );
if ( tmpFile.status() == 0 )
@ -194,8 +194,8 @@ TQString Printing::minimizeString( TQString text, const TQFontMetrics&
///////////////////////////////////////////////////////////////////
KuickPrintDialogPage::KuickPrintDialogPage( TQWidget *tqparent, const char *name )
: KPrintDialogPage( tqparent, name )
KuickPrintDialogPage::KuickPrintDialogPage( TQWidget *parent, const char *name )
: KPrintDialogPage( parent, name )
{
setTitle( i18n("Image Settings") );

@ -36,7 +36,7 @@ class ImageWindow;
class Printing
{
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,
const TQString& originalFileName );
@ -53,7 +53,7 @@ class KuickPrintDialogPage : public KPrintDialogPage
TQ_OBJECT
public:
KuickPrintDialogPage( TQWidget *tqparent = 0L, const char *name = 0 );
KuickPrintDialogPage( TQWidget *parent = 0L, const char *name = 0 );
~KuickPrintDialogPage();
virtual void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);

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

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

Loading…
Cancel
Save