rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksquirrel@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 79128018a1
commit 2af11d9103

@ -17,7 +17,7 @@
#include "sq_bcglabel.h" #include "sq_bcglabel.h"
SQ_BCGLabel::SQ_BCGLabel(TQWidget *tqparent, const char *name, WFlags f) : TQLabel(tqparent, name, f | TQt::WNoAutoErase) SQ_BCGLabel::SQ_BCGLabel(TQWidget *parent, const char *name, WFlags f) : TQLabel(parent, name, f | TQt::WNoAutoErase)
{ {
setScaledContents(false); setScaledContents(false);

@ -27,7 +27,7 @@
class SQ_BCGLabel : public TQLabel class SQ_BCGLabel : public TQLabel
{ {
public: public:
SQ_BCGLabel(TQWidget *tqparent, const char *name = 0, WFlags f = 0); SQ_BCGLabel(TQWidget *parent, const char *name = 0, WFlags f = 0);
~SQ_BCGLabel(); ~SQ_BCGLabel();
}; };

@ -44,7 +44,7 @@
SQ_Converter * SQ_Converter::m_sing = 0; SQ_Converter * SQ_Converter::m_sing = 0;
SQ_Converter::SQ_Converter(TQObject *tqparent) : TQObject(tqparent) SQ_Converter::SQ_Converter(TQObject *parent) : TQObject(parent)
{ {
m_sing = this; m_sing = this;

@ -50,7 +50,7 @@ class SQ_Converter : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
SQ_Converter(TQObject *tqparent); SQ_Converter(TQObject *parent);
~SQ_Converter(); ~SQ_Converter();
public: public:

@ -21,7 +21,7 @@
#define MARGIN 15 #define MARGIN 15
SQ_Label::SQ_Label(TQWidget *tqparent, const char *name) : TQWidget(tqparent, name), single(false) SQ_Label::SQ_Label(TQWidget *parent, const char *name) : TQWidget(parent, name), single(false)
{} {}
SQ_Label::~SQ_Label() SQ_Label::~SQ_Label()

@ -23,7 +23,7 @@
class SQ_Label : public TQWidget class SQ_Label : public TQWidget
{ {
public: public:
SQ_Label(TQWidget *tqparent = 0, const char *name = 0); SQ_Label(TQWidget *parent = 0, const char *name = 0);
~SQ_Label(); ~SQ_Label();
void setText(const TQString &lt, const TQString &rt); void setText(const TQString &lt, const TQString &rt);

@ -28,11 +28,11 @@
#include "./klc.ui.h" #include "./klc.ui.h"
/* /*
* Constructs a KLC as a child of 'tqparent', with the * Constructs a KLC as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
*/ */
KLC::KLC( TQWidget* tqparent, const char* name, WFlags fl ) KLC::KLC( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( tqparent, name, fl ) : TQWidget( parent, name, fl )
{ {
if ( !name ) if ( !name )
setName( "KLC" ); setName( "KLC" );

@ -124,8 +124,8 @@ static const int menuParam = 100000;
KSquirrel * KSquirrel::m_instance = 0; KSquirrel * KSquirrel::m_instance = 0;
KSquirrel::KSquirrel(TQWidget *tqparent, const char *name) KSquirrel::KSquirrel(TQWidget *parent, const char *name)
: KMainWindow (tqparent, name), DCOPObject(name) : KMainWindow (parent, name), DCOPObject(name)
{ {
// singleton setup // singleton setup
m_instance = this; m_instance = this;

@ -84,7 +84,7 @@ class KSquirrel : public KMainWindow, public DCOPObject
/* /*
* Constructor & destructor * Constructor & destructor
*/ */
KSquirrel(TQWidget *tqparent, const char *name); KSquirrel(TQWidget *parent, const char *name);
~KSquirrel(); ~KSquirrel();
SQ_Progress* diskProgress(); SQ_Progress* diskProgress();

@ -39,8 +39,8 @@ typedef KParts::GenericFactory<KSquirrelPart> KSquirrelFactory;
K_EXPORT_COMPONENT_FACTORY(libksquirrelpart, KSquirrelFactory) K_EXPORT_COMPONENT_FACTORY(libksquirrelpart, KSquirrelFactory)
KSquirrelPart::KSquirrelPart(TQWidget *parentWidget, const char *, KSquirrelPart::KSquirrelPart(TQWidget *parentWidget, const char *,
TQObject* tqparent, const char *name, TQObject* parent, const char *name,
const TQStringList &) : KParts::ReadOnlyPart(tqparent, name) const TQStringList &) : KParts::ReadOnlyPart(parent, name)
{ {
kdDebug() << "+KSquirrelPart" << endl; kdDebug() << "+KSquirrelPart" << endl;

@ -17,7 +17,7 @@
#include "sq_bcglabel.h" #include "sq_bcglabel.h"
SQ_BCGLabel::SQ_BCGLabel(TQWidget *tqparent, const char *name, WFlags f) : TQLabel(tqparent, name, f | TQt::WNoAutoErase) SQ_BCGLabel::SQ_BCGLabel(TQWidget *parent, const char *name, WFlags f) : TQLabel(parent, name, f | TQt::WNoAutoErase)
{ {
setScaledContents(false); setScaledContents(false);

@ -27,7 +27,7 @@
class SQ_BCGLabel : public TQLabel class SQ_BCGLabel : public TQLabel
{ {
public: public:
SQ_BCGLabel(TQWidget *tqparent, const char *name = 0, WFlags f = 0); SQ_BCGLabel(TQWidget *parent, const char *name = 0, WFlags f = 0);
~SQ_BCGLabel(); ~SQ_BCGLabel();
}; };

@ -23,7 +23,7 @@
SQ_Config * SQ_Config::m_instance = 0; SQ_Config * SQ_Config::m_instance = 0;
SQ_Config::SQ_Config(TQObject *tqparent) : TQObject(tqparent) SQ_Config::SQ_Config(TQObject *parent) : TQObject(parent)
{ {
m_instance = this; m_instance = this;

@ -30,7 +30,7 @@ class KConfig;
class SQ_Config : public TQObject class SQ_Config : public TQObject
{ {
public: public:
SQ_Config(TQObject *tqparent = 0); SQ_Config(TQObject *parent = 0);
~SQ_Config(); ~SQ_Config();
static SQ_Config* instance() { return m_instance; } static SQ_Config* instance() { return m_instance; }

@ -25,7 +25,7 @@
SQ_DirOperator * SQ_DirOperator::m_inst = 0; SQ_DirOperator * SQ_DirOperator::m_inst = 0;
SQ_DirOperator::SQ_DirOperator(TQObject *tqparent) : TQObject(tqparent) SQ_DirOperator::SQ_DirOperator(TQObject *parent) : TQObject(parent)
{ {
m_inst = this; m_inst = this;
@ -75,12 +75,12 @@ void SQ_DirOperator::slotDownloadPercents(int p)
SQ_GLWidget::window()->setDownloadPercents(p); SQ_GLWidget::window()->setDownloadPercents(p);
} }
void SQ_DirOperator::del(const KURL &u, TQWidget *tqparent) void SQ_DirOperator::del(const KURL &u, TQWidget *parent)
{ {
KURL::List list; KURL::List list;
list.append(u); list.append(u);
KonqOperations::del(tqparent, KonqOperations::DEL, list); KonqOperations::del(parent, KonqOperations::DEL, list);
} }
#include "sq_diroperator.moc" #include "sq_diroperator.moc"

@ -32,14 +32,14 @@ class SQ_DirOperator : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
SQ_DirOperator(TQObject *tqparent = 0); SQ_DirOperator(TQObject *parent = 0);
~SQ_DirOperator(); ~SQ_DirOperator();
static SQ_DirOperator* instance() { return m_inst; } static SQ_DirOperator* instance() { return m_inst; }
void execute(KFileItem *item); void execute(KFileItem *item);
void del(const KURL &u, TQWidget *tqparent = 0); void del(const KURL &u, TQWidget *parent = 0);
private: private:
void executePrivate(KFileItem *); void executePrivate(KFileItem *);

@ -30,7 +30,7 @@
#define SQ_PREDOWNLOAD_SIZE 50 #define SQ_PREDOWNLOAD_SIZE 50
SQ_Downloader::SQ_Downloader(TQObject *tqparent, const char *name) : TQObject(tqparent, name), job(0), m_error(false) SQ_Downloader::SQ_Downloader(TQObject *parent, const char *name) : TQObject(parent, name), job(0), m_error(false)
{ {
tmp = new KTempFile; tmp = new KTempFile;
tmp->setAutoDelete(true); tmp->setAutoDelete(true);

@ -34,7 +34,7 @@ class SQ_Downloader : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
SQ_Downloader(TQObject *tqparent = 0, const char *name = 0); SQ_Downloader(TQObject *parent = 0, const char *name = 0);
~SQ_Downloader(); ~SQ_Downloader();
void start(KFileItem *fi); void start(KFileItem *fi);

@ -25,7 +25,7 @@
SQ_ErrorString * SQ_ErrorString::m_instance = 0; SQ_ErrorString * SQ_ErrorString::m_instance = 0;
SQ_ErrorString::SQ_ErrorString(TQObject *tqparent) : TQObject(tqparent) SQ_ErrorString::SQ_ErrorString(TQObject *parent) : TQObject(parent)
{ {
m_instance = this; m_instance = this;

@ -33,7 +33,7 @@
class SQ_ErrorString : public TQObject class SQ_ErrorString : public TQObject
{ {
public: public:
SQ_ErrorString(TQObject *tqparent = 0); SQ_ErrorString(TQObject *parent = 0);
~SQ_ErrorString(); ~SQ_ErrorString();
/* /*

@ -45,7 +45,7 @@ Tool::Tool(const TQString &pix, const TQString &nam, const TQString &com)
command = com; command = com;
} }
SQ_ExternalTool::SQ_ExternalTool(TQObject *tqparent) : TQObject(tqparent), TQValueVector<Tool>() SQ_ExternalTool::SQ_ExternalTool(TQObject *parent) : TQObject(parent), TQValueVector<Tool>()
{ {
m_instance = this; m_instance = this;
menu = new SQ_PopupMenu(0, "External tools"); menu = new SQ_PopupMenu(0, "External tools");

@ -46,7 +46,7 @@ class SQ_ExternalTool : public TQObject, public TQValueVector<Tool>
TQ_OBJECT TQ_OBJECT
public: public:
SQ_ExternalTool(TQObject *tqparent = 0); SQ_ExternalTool(TQObject *parent = 0);
~SQ_ExternalTool(); ~SQ_ExternalTool();
/* /*

@ -19,8 +19,8 @@
#include "sq_filedialog.h" #include "sq_filedialog.h"
SQ_FileDialog::SQ_FileDialog(const TQString &path, TQWidget *tqparent) SQ_FileDialog::SQ_FileDialog(const TQString &path, TQWidget *parent)
: KFileDialog(path, TQString(), tqparent, "select_a_file", true) : KFileDialog(path, TQString(), parent, "select_a_file", true)
{} {}
SQ_FileDialog::~SQ_FileDialog() SQ_FileDialog::~SQ_FileDialog()

@ -27,7 +27,7 @@
class SQ_FileDialog : public KFileDialog class SQ_FileDialog : public KFileDialog
{ {
public: public:
SQ_FileDialog(const TQString &path, TQWidget *tqparent); SQ_FileDialog(const TQString &path, TQWidget *parent);
~SQ_FileDialog(); ~SQ_FileDialog();
TQString nameFilter() const; TQString nameFilter() const;

@ -23,7 +23,7 @@ SQ_GLView * SQ_GLView::m_inst = 0;
/***************************************/ /***************************************/
SQ_TextSetter::SQ_TextSetter(TQObject *tqparent) : TQObject(tqparent) SQ_TextSetter::SQ_TextSetter(TQObject *parent) : TQObject(parent)
{ {
dest = "---"; dest = "---";
} }

@ -28,7 +28,7 @@ class SQ_TextSetter : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
SQ_TextSetter(TQObject *tqparent = 0); SQ_TextSetter(TQObject *parent = 0);
~SQ_TextSetter(); ~SQ_TextSetter();
void setText(const TQString &); void setText(const TQString &);

@ -105,7 +105,7 @@ static const float SQ_ONSCREEN_LAYER = 10000.0;
/* ***************************************************************************************** */ /* ***************************************************************************************** */
SQ_GLWidget::SQ_GLWidget(TQWidget *tqparent, const char *name) : TQGLWidget(tqparent, name) SQ_GLWidget::SQ_GLWidget(TQWidget *parent, const char *name) : TQGLWidget(parent, name)
{ {
kdDebug() << "+SQ_GLWidget" << endl; kdDebug() << "+SQ_GLWidget" << endl;

@ -127,7 +127,7 @@ class SQ_GLWidget : public TQGLWidget
TQ_OBJECT TQ_OBJECT
public: public:
SQ_GLWidget(TQWidget *tqparent = 0, const char *name = 0); SQ_GLWidget(TQWidget *parent = 0, const char *name = 0);
~SQ_GLWidget(); ~SQ_GLWidget();
void setDownloadPercents(int); void setDownloadPercents(int);

@ -36,8 +36,8 @@
#include "sq_glwidget_helpers.h" #include "sq_glwidget_helpers.h"
SQ_ToolButtonPopup::SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *tqparent) SQ_ToolButtonPopup::SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *parent)
: KToolBarButton(pix, -1, tqparent, 0, textLabel) : KToolBarButton(pix, -1, parent, 0, textLabel)
{ {
setFixedWidth(SQ_ToolButton::fixedWidth()); setFixedWidth(SQ_ToolButton::fixedWidth());
} }
@ -46,8 +46,8 @@ SQ_ToolButtonPopup::~SQ_ToolButtonPopup()
{} {}
SQ_ToolButton::SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, SQ_ToolButton::SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel,
TQObject *receiver, const char *slot, KToolBar *tqparent, const char *name) TQObject *receiver, const char *slot, KToolBar *parent, const char *name)
: TQToolButton(iconSet, textLabel, TQString(), receiver, slot, tqparent, name) : TQToolButton(iconSet, textLabel, TQString(), receiver, slot, parent, name)
{ {
setFixedWidth(SQ_ToolButton::fixedWidth()); setFixedWidth(SQ_ToolButton::fixedWidth());
} }

@ -29,7 +29,7 @@ struct RGBA;
class SQ_ToolButtonPopup : public KToolBarButton class SQ_ToolButtonPopup : public KToolBarButton
{ {
public: public:
SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *tqparent); SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *parent);
~SQ_ToolButtonPopup(); ~SQ_ToolButtonPopup();
}; };
@ -37,7 +37,7 @@ class SQ_ToolButton : public TQToolButton
{ {
public: public:
SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, TQObject *receiver, SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, TQObject *receiver,
const char *slot, KToolBar *tqparent, const char *name = 0); const char *slot, KToolBar *parent, const char *name = 0);
~SQ_ToolButton(); ~SQ_ToolButton();
static int fixedWidth(); static int fixedWidth();

@ -27,7 +27,7 @@
SQ_IconLoader * SQ_IconLoader::m_instance = 0; SQ_IconLoader * SQ_IconLoader::m_instance = 0;
SQ_IconLoader::SQ_IconLoader(TQObject *tqparent) : TQObject(tqparent) SQ_IconLoader::SQ_IconLoader(TQObject *parent) : TQObject(parent)
{ {
m_instance = this; m_instance = this;

@ -32,7 +32,7 @@
class SQ_IconLoader : public TQObject class SQ_IconLoader : public TQObject
{ {
public: public:
SQ_IconLoader(TQObject *tqparent = 0); SQ_IconLoader(TQObject *parent = 0);
~SQ_IconLoader(); ~SQ_IconLoader();
TQPixmap loadIcon(const TQString &name, KIcon::Group group = KIcon::Desktop, int size = 16) const; TQPixmap loadIcon(const TQString &name, KIcon::Group group = KIcon::Desktop, int size = 16) const;

@ -21,7 +21,7 @@
#define MARGIN 15 #define MARGIN 15
SQ_Label::SQ_Label(TQWidget *tqparent, const char *name) : TQWidget(tqparent, name), single(false) SQ_Label::SQ_Label(TQWidget *parent, const char *name) : TQWidget(parent, name), single(false)
{} {}
SQ_Label::~SQ_Label() SQ_Label::~SQ_Label()

@ -23,7 +23,7 @@
class SQ_Label : public TQWidget class SQ_Label : public TQWidget
{ {
public: public:
SQ_Label(TQWidget *tqparent = 0, const char *name = 0); SQ_Label(TQWidget *parent = 0, const char *name = 0);
~SQ_Label(); ~SQ_Label();
void setText(const TQString &lt, const TQString &rt); void setText(const TQString &lt, const TQString &rt);

@ -46,8 +46,8 @@ static const int buffer_size = 10;
SQ_LibraryHandler * SQ_LibraryHandler::m_instance = 0; SQ_LibraryHandler * SQ_LibraryHandler::m_instance = 0;
// SQ_LibraryHandler // SQ_LibraryHandler
SQ_LibraryHandler::SQ_LibraryHandler(TQObject *tqparent) SQ_LibraryHandler::SQ_LibraryHandler(TQObject *parent)
: TQObject(tqparent), TQValueVector<SQ_LIBRARY>() : TQObject(parent), TQValueVector<SQ_LIBRARY>()
{ {
m_instance = this; m_instance = this;

@ -37,7 +37,7 @@ class KURL;
class SQ_LibraryHandler : public TQObject, public TQValueVector<SQ_LIBRARY> class SQ_LibraryHandler : public TQObject, public TQValueVector<SQ_LIBRARY>
{ {
public: public:
SQ_LibraryHandler(TQObject *tqparent = 0); SQ_LibraryHandler(TQObject *parent = 0);
~SQ_LibraryHandler(); ~SQ_LibraryHandler();
enum Support { Maybe = 0, Yes, No }; enum Support { Maybe = 0, Yes, No };

@ -21,8 +21,8 @@
#include "sq_popupmenu.h" #include "sq_popupmenu.h"
SQ_PopupMenu::SQ_PopupMenu(TQWidget *tqparent, const char *name) SQ_PopupMenu::SQ_PopupMenu(TQWidget *parent, const char *name)
: KPopupMenu(tqparent, name), title(0) : KPopupMenu(parent, name), title(0)
{} {}
SQ_PopupMenu::~SQ_PopupMenu() SQ_PopupMenu::~SQ_PopupMenu()

@ -27,7 +27,7 @@
class SQ_PopupMenu : public KPopupMenu class SQ_PopupMenu : public KPopupMenu
{ {
public: public:
SQ_PopupMenu(TQWidget *tqparent = 0, const char *name = 0); SQ_PopupMenu(TQWidget *parent = 0, const char *name = 0);
~SQ_PopupMenu(); ~SQ_PopupMenu();
void insertTitle(const TQString &t); void insertTitle(const TQString &t);

@ -51,16 +51,16 @@ SQ_CategoriesBox * SQ_CategoriesBox::sing = 0;
/* *************************************************************************************** */ /* *************************************************************************************** */
SQ_CategoriesViewBranch::SQ_CategoriesViewBranch(KFileTreeView *tqparent, const KURL &url, const TQString &name, const TQPixmap &pix) SQ_CategoriesViewBranch::SQ_CategoriesViewBranch(KFileTreeView *parent, const KURL &url, const TQString &name, const TQPixmap &pix)
: KFileTreeBranch(tqparent, url, name, pix) : KFileTreeBranch(parent, url, name, pix)
{} {}
SQ_CategoriesViewBranch::~SQ_CategoriesViewBranch() SQ_CategoriesViewBranch::~SQ_CategoriesViewBranch()
{} {}
KFileTreeViewItem* SQ_CategoriesViewBranch::createTreeViewItem(KFileTreeViewItem *tqparent, KFileItem *fileItem) KFileTreeViewItem* SQ_CategoriesViewBranch::createTreeViewItem(KFileTreeViewItem *parent, KFileItem *fileItem)
{ {
KFileTreeViewItem *i = KFileTreeBranch::createTreeViewItem(tqparent, fileItem); KFileTreeViewItem *i = KFileTreeBranch::createTreeViewItem(parent, fileItem);
/* /*
* In storage there are files with MD5 sum appended to their names. * In storage there are files with MD5 sum appended to their names.
@ -83,7 +83,7 @@ KFileTreeViewItem* SQ_CategoriesViewBranch::createTreeViewItem(KFileTreeViewItem
/* *************************************************************************************** */ /* *************************************************************************************** */
SQ_CategoriesView::SQ_CategoriesView(TQWidget *tqparent, const char *name) : KFileTreeView(tqparent, name) SQ_CategoriesView::SQ_CategoriesView(TQWidget *parent, const char *name) : KFileTreeView(parent, name)
{ {
setAcceptDrops(true); setAcceptDrops(true);
@ -151,7 +151,7 @@ void SQ_CategoriesView::slotItemExecuted(TQListViewItem *item)
/* ************************************************************** */ /* ************************************************************** */
SQ_CategoriesBox::SQ_CategoriesBox(TQWidget *tqparent, const char *name) : TQVBox(tqparent, name) SQ_CategoriesBox::SQ_CategoriesBox(TQWidget *parent, const char *name) : TQVBox(parent, name)
{ {
sing = this; sing = this;
@ -222,7 +222,7 @@ void SQ_CategoriesBox::slotNewCategory()
if(!cur) return; if(!cur) return;
if(!cur->isDir()) if(!cur->isDir())
cur = static_cast<KFileTreeViewItem *>(cur->tqparent()); cur = static_cast<KFileTreeViewItem *>(cur->parent());
if(!cur) return; if(!cur) return;
@ -235,9 +235,9 @@ void SQ_CategoriesBox::slotNewCategory()
} }
} }
void SQ_CategoriesBox::slotDropped(TQDropEvent *e, TQListViewItem *tqparent, TQListViewItem *item) void SQ_CategoriesBox::slotDropped(TQDropEvent *e, TQListViewItem *parent, TQListViewItem *item)
{ {
if(!item) item = tqparent; if(!item) item = parent;
KFileTreeViewItem *cur = static_cast<KFileTreeViewItem *>(item); KFileTreeViewItem *cur = static_cast<KFileTreeViewItem *>(item);

@ -42,7 +42,7 @@ class SQ_CategoriesViewBranch : public KFileTreeBranch
~SQ_CategoriesViewBranch(); ~SQ_CategoriesViewBranch();
protected: protected:
virtual KFileTreeViewItem *createTreeViewItem(KFileTreeViewItem *tqparent, KFileItem *fileItem); virtual KFileTreeViewItem *createTreeViewItem(KFileTreeViewItem *parent, KFileItem *fileItem);
}; };
/* *************************************************** */ /* *************************************************** */
@ -53,7 +53,7 @@ class SQ_CategoriesView : public KFileTreeView
TQ_OBJECT TQ_OBJECT
public: public:
SQ_CategoriesView(TQWidget *tqparent = 0, const char *name = 0); SQ_CategoriesView(TQWidget *parent = 0, const char *name = 0);
~SQ_CategoriesView(); ~SQ_CategoriesView();
SQ_TreeViewMenu *popupMenu() const; SQ_TreeViewMenu *popupMenu() const;
@ -91,7 +91,7 @@ class SQ_CategoriesBox : public TQVBox
TQ_OBJECT TQ_OBJECT
public: public:
SQ_CategoriesBox(TQWidget *tqparent = 0, const char *name = 0); SQ_CategoriesBox(TQWidget *parent = 0, const char *name = 0);
~SQ_CategoriesBox(); ~SQ_CategoriesBox();
/* /*

@ -61,8 +61,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
TQMap<TQString, TQPixmap> *SQ_CategoryBrowserMenu::_icons = 0; TQMap<TQString, TQPixmap> *SQ_CategoryBrowserMenu::_icons = 0;
SQ_CategoryBrowserMenu::SQ_CategoryBrowserMenu(TQString path, TQWidget *tqparent, const char *name, int startid) SQ_CategoryBrowserMenu::SQ_CategoryBrowserMenu(TQString path, TQWidget *parent, const char *name, int startid)
: KPanelMenu(path, tqparent, name) : KPanelMenu(path, parent, name)
, _mimecheckTimer(0) , _mimecheckTimer(0)
, _startid(startid) , _startid(startid)
, _dirty(false) , _dirty(false)

@ -42,7 +42,7 @@ class SQ_CategoryBrowserMenu : public KPanelMenu
TQ_OBJECT TQ_OBJECT
public: public:
SQ_CategoryBrowserMenu(TQString path, TQWidget *tqparent = 0, const char *name = 0, int startid = 0); SQ_CategoryBrowserMenu(TQString path, TQWidget *parent = 0, const char *name = 0, int startid = 0);
~SQ_CategoryBrowserMenu(); ~SQ_CategoryBrowserMenu();
void append(const TQPixmap &pixmap, const TQString &title, const TQString &filename, bool mimecheck); void append(const TQPixmap &pixmap, const TQString &title, const TQString &filename, bool mimecheck);

@ -48,7 +48,7 @@ SQ_DirectoryBasket * SQ_DirectoryBasket::m_inst = 0;
/* ******************************************************************************* */ /* ******************************************************************************* */
SQ_DBMenu::SQ_DBMenu(TQWidget *tqparent, const char *name) : SQ_TreeViewMenu(tqparent, name), item(0) SQ_DBMenu::SQ_DBMenu(TQWidget *parent, const char *name) : SQ_TreeViewMenu(parent, name), item(0)
{ {
insertSeparator(); insertSeparator();
id_icon = insertItem(i18n("Change icon"), TQT_TQOBJECT(this), TQT_SLOT(slotChangeIcon())); id_icon = insertItem(i18n("Change icon"), TQT_TQOBJECT(this), TQT_SLOT(slotChangeIcon()));
@ -122,8 +122,8 @@ SQ_DirectoryItem::SQ_DirectoryItem(KFileTreeViewItem *parentItem, KFileItem *fil
: KFileTreeViewItem(parentItem, fileItem, parentBranch), m_index(0) : KFileTreeViewItem(parentItem, fileItem, parentBranch), m_index(0)
{} {}
SQ_DirectoryItem::SQ_DirectoryItem(KFileTreeView *tqparent, KFileItem *fileItem, KFileTreeBranch *parentBranch) SQ_DirectoryItem::SQ_DirectoryItem(KFileTreeView *parent, KFileItem *fileItem, KFileTreeBranch *parentBranch)
: KFileTreeViewItem(tqparent, fileItem, parentBranch), m_index(0) : KFileTreeViewItem(parent, fileItem, parentBranch), m_index(0)
{} {}
SQ_DirectoryItem::~SQ_DirectoryItem() SQ_DirectoryItem::~SQ_DirectoryItem()
@ -131,22 +131,22 @@ SQ_DirectoryItem::~SQ_DirectoryItem()
/* ******************************************************************************* */ /* ******************************************************************************* */
SQ_DirectoryBasketBranch::SQ_DirectoryBasketBranch(KFileTreeView *tqparent, const KURL &url, const TQString &name, const TQPixmap &pix) SQ_DirectoryBasketBranch::SQ_DirectoryBasketBranch(KFileTreeView *parent, const KURL &url, const TQString &name, const TQPixmap &pix)
: KFileTreeBranch(tqparent, url, name, pix) : KFileTreeBranch(parent, url, name, pix)
{} {}
SQ_DirectoryBasketBranch::~SQ_DirectoryBasketBranch() SQ_DirectoryBasketBranch::~SQ_DirectoryBasketBranch()
{} {}
KFileTreeViewItem* SQ_DirectoryBasketBranch::createTreeViewItem(KFileTreeViewItem *tqparent, KFileItem *fileItem) KFileTreeViewItem* SQ_DirectoryBasketBranch::createTreeViewItem(KFileTreeViewItem *parent, KFileItem *fileItem)
{ {
if(!tqparent || !fileItem) if(!parent || !fileItem)
return 0; return 0;
// hehe... // hehe...
fileItem->setMimeType("inode/directory"); fileItem->setMimeType("inode/directory");
SQ_DirectoryItem *i = new SQ_DirectoryItem(tqparent, fileItem, this); SQ_DirectoryItem *i = new SQ_DirectoryItem(parent, fileItem, this);
if(i) if(i)
{ {
@ -200,7 +200,7 @@ KFileTreeViewItem* SQ_DirectoryBasketBranch::createTreeViewItem(KFileTreeViewIte
/* ******************************************************************************* */ /* ******************************************************************************* */
SQ_DirectoryBasket::SQ_DirectoryBasket(TQWidget *tqparent, const char *name) : KFileTreeView(tqparent, name) SQ_DirectoryBasket::SQ_DirectoryBasket(TQWidget *parent, const char *name) : KFileTreeView(parent, name)
{ {
m_inst = this; m_inst = this;
@ -307,7 +307,7 @@ void SQ_DirectoryBasket::slotDropped(TQDropEvent *e, TQListViewItem *_parent, TQ
if(!_item) _item = _parent; if(!_item) _item = _parent;
SQ_DirectoryItem *item = static_cast<SQ_DirectoryItem *>(_item); SQ_DirectoryItem *item = static_cast<SQ_DirectoryItem *>(_item);
SQ_DirectoryItem *tqparent = static_cast<SQ_DirectoryItem *>(_parent); SQ_DirectoryItem *parent = static_cast<SQ_DirectoryItem *>(_parent);
KURL::List list; KURL::List list;
KURLDrag::decode(e, list); KURLDrag::decode(e, list);
@ -329,9 +329,9 @@ void SQ_DirectoryBasket::slotDropped(TQDropEvent *e, TQListViewItem *_parent, TQ
if(it) if(it)
{ {
if(it != root->root()) if(it != root->root())
moveItem(tomove, tqparent, it); moveItem(tomove, parent, it);
else else
moveItem(tomove, tqparent, 0); moveItem(tomove, parent, 0);
emit moved(); emit moved();

@ -38,7 +38,7 @@ class SQ_DBMenu : public SQ_TreeViewMenu
TQ_OBJECT TQ_OBJECT
public: public:
SQ_DBMenu(TQWidget *tqparent = 0, const char *name = 0); SQ_DBMenu(TQWidget *parent = 0, const char *name = 0);
~SQ_DBMenu(); ~SQ_DBMenu();
virtual void updateDirActions(bool, bool isroot = false); virtual void updateDirActions(bool, bool isroot = false);
@ -66,7 +66,7 @@ class SQ_DirectoryItem : public KFileTreeViewItem
{ {
public: public:
SQ_DirectoryItem(KFileTreeViewItem *parentItem, KFileItem *fileItem, KFileTreeBranch *parentBranch); SQ_DirectoryItem(KFileTreeViewItem *parentItem, KFileItem *fileItem, KFileTreeBranch *parentBranch);
SQ_DirectoryItem(KFileTreeView *tqparent, KFileItem *fileItem, KFileTreeBranch *parentBranch); SQ_DirectoryItem(KFileTreeView *parent, KFileItem *fileItem, KFileTreeBranch *parentBranch);
~SQ_DirectoryItem(); ~SQ_DirectoryItem();
int index() const; int index() const;
@ -152,7 +152,7 @@ class SQ_DirectoryBasketBranch : public KFileTreeBranch
~SQ_DirectoryBasketBranch(); ~SQ_DirectoryBasketBranch();
protected: protected:
virtual KFileTreeViewItem *createTreeViewItem(KFileTreeViewItem *tqparent, KFileItem *fileItem); virtual KFileTreeViewItem *createTreeViewItem(KFileTreeViewItem *parent, KFileItem *fileItem);
}; };
class SQ_DirectoryBasket : public KFileTreeView class SQ_DirectoryBasket : public KFileTreeView
@ -161,7 +161,7 @@ class SQ_DirectoryBasket : public KFileTreeView
TQ_OBJECT TQ_OBJECT
public: public:
SQ_DirectoryBasket(TQWidget *tqparent = 0, const char *name = 0); SQ_DirectoryBasket(TQWidget *parent = 0, const char *name = 0);
~SQ_DirectoryBasket(); ~SQ_DirectoryBasket();
void add(const KFileItemList &list); void add(const KFileItemList &list);

@ -38,7 +38,7 @@
SQ_ImageBasket * SQ_ImageBasket::m_inst; SQ_ImageBasket * SQ_ImageBasket::m_inst;
SQ_ImageBasket::SQ_ImageBasket(TQWidget *tqparent, const char *name) : KDirOperator((dir = new SQ_Dir(SQ_Dir::Basket))->root(), tqparent, name) SQ_ImageBasket::SQ_ImageBasket(TQWidget *parent, const char *name) : KDirOperator((dir = new SQ_Dir(SQ_Dir::Basket))->root(), parent, name)
{ {
m_inst = this; m_inst = this;

@ -32,7 +32,7 @@ class SQ_ImageBasket : public KDirOperator
TQ_OBJECT TQ_OBJECT
public: public:
SQ_ImageBasket(TQWidget *tqparent = 0, const char *name = 0); SQ_ImageBasket(TQWidget *parent = 0, const char *name = 0);
~SQ_ImageBasket(); ~SQ_ImageBasket();
void add(const KFileItemList &); void add(const KFileItemList &);

@ -34,7 +34,7 @@
SQ_MountView * SQ_MountView::m_inst = 0; SQ_MountView * SQ_MountView::m_inst = 0;
SQ_MountView::SQ_MountView(TQWidget *tqparent, const char *name) : KListView(tqparent, name), m_columns(-1) SQ_MountView::SQ_MountView(TQWidget *parent, const char *name) : KListView(parent, name), m_columns(-1)
{ {
m_inst = this; m_inst = this;

@ -36,7 +36,7 @@ class SQ_MountView : public KListView
TQ_OBJECT TQ_OBJECT
public: public:
SQ_MountView(TQWidget *tqparent = 0, const char *name = 0); SQ_MountView(TQWidget *parent = 0, const char *name = 0);
~SQ_MountView(); ~SQ_MountView();
enum { OPT_COL_MOUNTPOINT = 1, OPT_COL_DEVICE = 2, OPT_COL_FSTYPE = 4, OPT_COL_OPTIONS = 8 }; enum { OPT_COL_MOUNTPOINT = 1, OPT_COL_DEVICE = 2, OPT_COL_FSTYPE = 4, OPT_COL_OPTIONS = 8 };

@ -24,8 +24,8 @@
#include "sq_mountviewitem.h" #include "sq_mountviewitem.h"
#include "sq_iconloader.h" #include "sq_iconloader.h"
SQ_MountViewItem::SQ_MountViewItem(KListView *tqparent, const TQString &mpoint) SQ_MountViewItem::SQ_MountViewItem(KListView *parent, const TQString &mpoint)
: KListViewItem(tqparent, mpoint), m_mounted(false) : KListViewItem(parent, mpoint), m_mounted(false)
{} {}
SQ_MountViewItem::~SQ_MountViewItem() SQ_MountViewItem::~SQ_MountViewItem()

@ -23,7 +23,7 @@
class SQ_MountViewItem : public KListViewItem class SQ_MountViewItem : public KListViewItem
{ {
public: public:
SQ_MountViewItem(KListView *tqparent, const TQString &mpoint); SQ_MountViewItem(KListView *parent, const TQString &mpoint);
~SQ_MountViewItem(); ~SQ_MountViewItem();
bool mounted() const; bool mounted() const;

@ -34,7 +34,7 @@
SQ_MultiBar * SQ_MultiBar::m_inst = 0; SQ_MultiBar * SQ_MultiBar::m_inst = 0;
SQ_MultiBar::SQ_MultiBar(TQWidget *tqparent, const char *name) : TQHBox(tqparent, name) SQ_MultiBar::SQ_MultiBar(TQWidget *parent, const char *name) : TQHBox(parent, name)
{ {
m_inst = this; m_inst = this;
m_id = 0; m_id = 0;

@ -59,7 +59,7 @@ class SQ_MultiBar : public TQHBox
TQ_OBJECT TQ_OBJECT
public: public:
SQ_MultiBar(TQWidget *tqparent = 0, const char *name = 0); SQ_MultiBar(TQWidget *parent = 0, const char *name = 0);
~SQ_MultiBar(); ~SQ_MultiBar();
/* /*

@ -48,8 +48,8 @@
SQ_PreviewWidget * SQ_PreviewWidget::m_inst = 0; SQ_PreviewWidget * SQ_PreviewWidget::m_inst = 0;
SQ_PreviewWidget::SQ_PreviewWidget(TQWidget *tqparent, const char *name) SQ_PreviewWidget::SQ_PreviewWidget(TQWidget *parent, const char *name)
: TQWidget(tqparent, name, TQt::WNoAutoErase), all(0), small(0), m_ignore(true) : TQWidget(parent, name, TQt::WNoAutoErase), all(0), small(0), m_ignore(true)
{ {
m_inst = this; m_inst = this;

@ -40,7 +40,7 @@ class SQ_PreviewWidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
SQ_PreviewWidget(TQWidget *tqparent = 0, const char *name = 0); SQ_PreviewWidget(TQWidget *parent = 0, const char *name = 0);
~SQ_PreviewWidget(); ~SQ_PreviewWidget();
void rereadColor(); void rereadColor();

@ -39,8 +39,8 @@ class KConfig;
class SQ_ItemsEvent : public TQCustomEvent class SQ_ItemsEvent : public TQCustomEvent
{ {
public: public:
SQ_ItemsEvent(const KURL &tqparent, int c1, int c2) SQ_ItemsEvent(const KURL &parent, int c1, int c2)
: TQCustomEvent(SQ_ItemsEventId), m_files(c1), m_dirs(c2), m_url(tqparent) : TQCustomEvent(SQ_ItemsEventId), m_files(c1), m_dirs(c2), m_url(parent)
{} {}
int files() const; int files() const;

@ -45,26 +45,26 @@
SQ_TreeView * SQ_TreeView::m_instance = 0; SQ_TreeView * SQ_TreeView::m_instance = 0;
SQ_FileTreeViewBranch::SQ_FileTreeViewBranch(KFileTreeView *tqparent, const KURL &url, SQ_FileTreeViewBranch::SQ_FileTreeViewBranch(KFileTreeView *parent, const KURL &url,
const TQString &name, const TQPixmap &pix) : KFileTreeBranch(tqparent, url, name, pix) const TQString &name, const TQPixmap &pix) : KFileTreeBranch(parent, url, name, pix)
{} {}
SQ_FileTreeViewBranch::~SQ_FileTreeViewBranch() SQ_FileTreeViewBranch::~SQ_FileTreeViewBranch()
{} {}
KFileTreeViewItem* SQ_FileTreeViewBranch::createTreeViewItem(KFileTreeViewItem *tqparent, KFileItem *fileItem) KFileTreeViewItem* SQ_FileTreeViewBranch::createTreeViewItem(KFileTreeViewItem *parent, KFileItem *fileItem)
{ {
KFileTreeViewItem *tvi = 0; KFileTreeViewItem *tvi = 0;
if(tqparent && fileItem) if(parent && fileItem)
tvi = new SQ_TreeViewItem(tqparent, fileItem, this); tvi = new SQ_TreeViewItem(parent, fileItem, this);
return tvi; return tvi;
} }
/******************************************************************************************************/ /******************************************************************************************************/
SQ_TreeView::SQ_TreeView(TQWidget *tqparent, const char *name) : KFileTreeView(tqparent, name) SQ_TreeView::SQ_TreeView(TQWidget *parent, const char *name) : KFileTreeView(parent, name)
{ {
m_instance = this; m_instance = this;
@ -552,7 +552,7 @@ void SQ_TreeView::contentsMousePressEvent(TQMouseEvent *e)
{ {
TQListViewItemIterator it(this); TQListViewItemIterator it(this);
// toggle tqparent item // toggle parent item
if(state == TQt::ShiftButton) toggle(m, true); if(state == TQt::ShiftButton) toggle(m, true);
else if(state == TQt::ControlButton) toggle(m, false, true); else if(state == TQt::ControlButton) toggle(m, false, true);
else if(state == TQt::AltButton) toggle(m, false, false); else if(state == TQt::AltButton) toggle(m, false, false);
@ -609,9 +609,9 @@ void SQ_TreeView::toggle(SQ_TreeViewItem *item, bool togg, bool set)
emit urlRemoved(item->url()); emit urlRemoved(item->url());
} }
void SQ_TreeView::slotDropped(TQDropEvent *e, TQListViewItem *tqparent, TQListViewItem *item) void SQ_TreeView::slotDropped(TQDropEvent *e, TQListViewItem *parent, TQListViewItem *item)
{ {
if(!item) item = tqparent; if(!item) item = parent;
KFileTreeViewItem *cur = static_cast<KFileTreeViewItem *>(item); KFileTreeViewItem *cur = static_cast<KFileTreeViewItem *>(item);

@ -40,7 +40,7 @@ class SQ_FileTreeViewBranch : public KFileTreeBranch
~SQ_FileTreeViewBranch(); ~SQ_FileTreeViewBranch();
protected: protected:
virtual KFileTreeViewItem *createTreeViewItem(KFileTreeViewItem *tqparent, KFileItem *fileItem); virtual KFileTreeViewItem *createTreeViewItem(KFileTreeViewItem *parent, KFileItem *fileItem);
}; };
/* /*
@ -53,7 +53,7 @@ class SQ_TreeView : public KFileTreeView
TQ_OBJECT TQ_OBJECT
public: public:
SQ_TreeView(TQWidget *tqparent = 0, const char *name = 0); SQ_TreeView(TQWidget *parent = 0, const char *name = 0);
~SQ_TreeView(); ~SQ_TreeView();
enum Recursion { No = 0, Files, Dirs, FilesDirs }; enum Recursion { No = 0, Files, Dirs, FilesDirs };

@ -28,8 +28,8 @@ SQ_TreeViewItem::SQ_TreeViewItem(KFileTreeViewItem *parentItem, KFileItem *fileI
m_checked(false), count_files(0), count_dirs(0), use_c1(false), use_c2(false) m_checked(false), count_files(0), count_dirs(0), use_c1(false), use_c2(false)
{} {}
SQ_TreeViewItem::SQ_TreeViewItem(KFileTreeView *tqparent, KFileItem *fileItem, KFileTreeBranch *parentBranch) SQ_TreeViewItem::SQ_TreeViewItem(KFileTreeView *parent, KFileItem *fileItem, KFileTreeBranch *parentBranch)
: KFileTreeViewItem(tqparent, fileItem, parentBranch), : KFileTreeViewItem(parent, fileItem, parentBranch),
m_checked(false), count_files(0), count_dirs(0), use_c1(false), use_c2(false) m_checked(false), count_files(0), count_dirs(0), use_c1(false), use_c2(false)
{} {}

@ -26,7 +26,7 @@ class SQ_TreeViewItem : public KFileTreeViewItem
{ {
public: public:
SQ_TreeViewItem(KFileTreeViewItem *parentItem, KFileItem *fileItem, KFileTreeBranch *parentBranch); SQ_TreeViewItem(KFileTreeViewItem *parentItem, KFileItem *fileItem, KFileTreeBranch *parentBranch);
SQ_TreeViewItem(KFileTreeView *tqparent, KFileItem *fileItem, KFileTreeBranch *parentBranch); SQ_TreeViewItem(KFileTreeView *parent, KFileItem *fileItem, KFileTreeBranch *parentBranch);
~SQ_TreeViewItem(); ~SQ_TreeViewItem();
bool checked() const; bool checked() const;

@ -13,7 +13,7 @@
#include "ksquirrel.h" #include "ksquirrel.h"
#include "sq_iconloader.h" #include "sq_iconloader.h"
SQ_TreeViewMenu::SQ_TreeViewMenu(TQWidget *tqparent, const char *name) : KPopupMenu(tqparent, name) SQ_TreeViewMenu::SQ_TreeViewMenu(TQWidget *parent, const char *name) : KPopupMenu(parent, name)
{ {
id_new = insertItem(SQ_IconLoader::instance()->loadIcon("folder_new", KIcon::Desktop, KIcon::SizeSmall), i18n("New folder..."), this, TQT_SLOT(slotDirectoryNew())); id_new = insertItem(SQ_IconLoader::instance()->loadIcon("folder_new", KIcon::Desktop, KIcon::SizeSmall), i18n("New folder..."), this, TQT_SLOT(slotDirectoryNew()));
insertSeparator(); insertSeparator();

@ -14,7 +14,7 @@ class SQ_TreeViewMenu : public KPopupMenu
TQ_OBJECT TQ_OBJECT
public: public:
SQ_TreeViewMenu(TQWidget *tqparent = 0, const char *name = 0); SQ_TreeViewMenu(TQWidget *parent = 0, const char *name = 0);
virtual ~SQ_TreeViewMenu(); virtual ~SQ_TreeViewMenu();
enum Element { New, Rename, Delete, Properties, Clear }; enum Element { New, Rename, Delete, Properties, Clear };

@ -21,8 +21,8 @@
SQ_ArchiveHandler * SQ_ArchiveHandler::m_instance = 0; SQ_ArchiveHandler * SQ_ArchiveHandler::m_instance = 0;
SQ_ArchiveHandler::SQ_ArchiveHandler(TQObject * tqparent, const char *name) SQ_ArchiveHandler::SQ_ArchiveHandler(TQObject * parent, const char *name)
: TQObject(tqparent, name), TQMap<TQString, TQString>() : TQObject(parent, name), TQMap<TQString, TQString>()
{ {
m_instance = this; m_instance = this;

@ -29,7 +29,7 @@ class SQ_ArchiveHandler : public TQObject, TQMap<TQString, TQString>
TQ_OBJECT TQ_OBJECT
public: public:
SQ_ArchiveHandler(TQObject *tqparent = 0, const char *name = 0); SQ_ArchiveHandler(TQObject *parent = 0, const char *name = 0);
~SQ_ArchiveHandler(); ~SQ_ArchiveHandler();
/* /*

@ -23,7 +23,7 @@
SQ_BookmarkOwner * SQ_BookmarkOwner::m_instance = 0; SQ_BookmarkOwner * SQ_BookmarkOwner::m_instance = 0;
SQ_BookmarkOwner::SQ_BookmarkOwner(TQWidget *tqparent) : TQObject(tqparent) SQ_BookmarkOwner::SQ_BookmarkOwner(TQWidget *parent) : TQObject(parent)
{ {
m_instance = this; m_instance = this;
} }

@ -35,7 +35,7 @@ class SQ_BookmarkOwner : public TQObject, public KBookmarkOwner
TQ_OBJECT TQ_OBJECT
public: public:
SQ_BookmarkOwner(TQWidget *tqparent = 0); SQ_BookmarkOwner(TQWidget *parent = 0);
virtual ~SQ_BookmarkOwner(); virtual ~SQ_BookmarkOwner();
/* /*

@ -23,7 +23,7 @@
SQ_Config * SQ_Config::m_instance = 0; SQ_Config * SQ_Config::m_instance = 0;
SQ_Config::SQ_Config(TQObject *tqparent) : TQObject(tqparent) SQ_Config::SQ_Config(TQObject *parent) : TQObject(parent)
{ {
m_instance = this; m_instance = this;

@ -30,7 +30,7 @@ class KConfig;
class SQ_Config : public TQObject class SQ_Config : public TQObject
{ {
public: public:
SQ_Config(TQObject *tqparent = 0); SQ_Config(TQObject *parent = 0);
~SQ_Config(); ~SQ_Config();
static SQ_Config* instance() { return m_instance; } static SQ_Config* instance() { return m_instance; }

@ -67,8 +67,8 @@
static const int SQ_MAX_WORD_LENGTH = 50; static const int SQ_MAX_WORD_LENGTH = 50;
SQ_DirOperator::SQ_DirOperator(const KURL &url, ViewT type_, TQWidget *tqparent, const char *name) SQ_DirOperator::SQ_DirOperator(const KURL &url, ViewT type_, TQWidget *parent, const char *name)
: KDirOperator(url, tqparent, name), type(type_) : KDirOperator(url, parent, name), type(type_)
{ {
usenew = false; usenew = false;

@ -54,7 +54,7 @@ class SQ_DirOperator : public KDirOperator
* View type is determined by 'type_'. * View type is determined by 'type_'.
*/ */
SQ_DirOperator(const KURL &url = KURL(), ViewT type_ = SQ_DirOperator::TypeList, SQ_DirOperator(const KURL &url = KURL(), ViewT type_ = SQ_DirOperator::TypeList,
TQWidget *tqparent = 0, const char *name = 0); TQWidget *parent = 0, const char *name = 0);
~SQ_DirOperator(); ~SQ_DirOperator();
@ -121,7 +121,7 @@ class SQ_DirOperator : public KDirOperator
/* /*
* Reimplement createView() to create custom views. * Reimplement createView() to create custom views.
*/ */
virtual KFileView* createView(TQWidget *tqparent, KFile::FileView view); virtual KFileView* createView(TQWidget *parent, KFile::FileView view);
private: private:
void itemKill(KFileItem *); void itemKill(KFileItem *);

@ -30,7 +30,7 @@
#define SQ_PREDOWNLOAD_SIZE 50 #define SQ_PREDOWNLOAD_SIZE 50
SQ_Downloader::SQ_Downloader(TQObject *tqparent, const char *name) : TQObject(tqparent, name), job(0), m_error(false) SQ_Downloader::SQ_Downloader(TQObject *parent, const char *name) : TQObject(parent, name), job(0), m_error(false)
{ {
tmp = new KTempFile; tmp = new KTempFile;
tmp->setAutoDelete(true); tmp->setAutoDelete(true);

@ -34,7 +34,7 @@ class SQ_Downloader : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
SQ_Downloader(TQObject *tqparent = 0, const char *name = 0); SQ_Downloader(TQObject *parent = 0, const char *name = 0);
~SQ_Downloader(); ~SQ_Downloader();
void start(KFileItem *fi); void start(KFileItem *fi);

@ -40,7 +40,7 @@
SQ_DragProvider * SQ_DragProvider::m_inst = 0; SQ_DragProvider * SQ_DragProvider::m_inst = 0;
SQ_DragProvider::SQ_DragProvider(TQObject *tqparent) : TQObject(tqparent), source(0) SQ_DragProvider::SQ_DragProvider(TQObject *parent) : TQObject(parent), source(0)
{ {
m_inst = this; m_inst = this;
} }

@ -36,7 +36,7 @@ class SQ_DragProvider : public TQObject
public: public:
enum SourceType { Icons, Thumbnails }; enum SourceType { Icons, Thumbnails };
SQ_DragProvider(TQObject *tqparent); SQ_DragProvider(TQObject *parent);
~SQ_DragProvider(); ~SQ_DragProvider();
/* /*

@ -25,7 +25,7 @@
SQ_ErrorString * SQ_ErrorString::m_instance = 0; SQ_ErrorString * SQ_ErrorString::m_instance = 0;
SQ_ErrorString::SQ_ErrorString(TQObject *tqparent) : TQObject(tqparent) SQ_ErrorString::SQ_ErrorString(TQObject *parent) : TQObject(parent)
{ {
m_instance = this; m_instance = this;

@ -33,7 +33,7 @@
class SQ_ErrorString : public TQObject class SQ_ErrorString : public TQObject
{ {
public: public:
SQ_ErrorString(TQObject *tqparent = 0); SQ_ErrorString(TQObject *parent = 0);
~SQ_ErrorString(); ~SQ_ErrorString();
/* /*

@ -45,7 +45,7 @@ Tool::Tool(const TQString &pix, const TQString &nam, const TQString &com)
command = com; command = com;
} }
SQ_ExternalTool::SQ_ExternalTool(TQObject *tqparent) : TQObject(tqparent), TQValueVector<Tool>() SQ_ExternalTool::SQ_ExternalTool(TQObject *parent) : TQObject(parent), TQValueVector<Tool>()
{ {
m_instance = this; m_instance = this;
menu = new SQ_PopupMenu(0, "External tools"); menu = new SQ_PopupMenu(0, "External tools");

@ -46,7 +46,7 @@ class SQ_ExternalTool : public TQObject, public TQValueVector<Tool>
TQ_OBJECT TQ_OBJECT
public: public:
SQ_ExternalTool(TQObject *tqparent = 0); SQ_ExternalTool(TQObject *parent = 0);
~SQ_ExternalTool(); ~SQ_ExternalTool();
/* /*

@ -35,18 +35,18 @@
#include "sq_diroperator.h" #include "sq_diroperator.h"
#include "sq_dragprovider.h" #include "sq_dragprovider.h"
SQ_FileListViewItem::SQ_FileListViewItem(TQListView *tqparent, KFileItem *fi) : KFileListViewItem(tqparent, fi) SQ_FileListViewItem::SQ_FileListViewItem(TQListView *parent, KFileItem *fi) : KFileListViewItem(parent, fi)
{} {}
SQ_FileListViewItem::SQ_FileListViewItem(TQListView *tqparent, const TQString &text, const TQPixmap &icon, KFileItem *fi) SQ_FileListViewItem::SQ_FileListViewItem(TQListView *parent, const TQString &text, const TQPixmap &icon, KFileItem *fi)
: KFileListViewItem(tqparent, text, icon, fi) : KFileListViewItem(parent, text, icon, fi)
{} {}
SQ_FileListViewItem::~SQ_FileListViewItem() SQ_FileListViewItem::~SQ_FileListViewItem()
{} {}
SQ_FileDetailView::SQ_FileDetailView(TQWidget* tqparent, const char* name) SQ_FileDetailView::SQ_FileDetailView(TQWidget* parent, const char* name)
: KFileDetailView(tqparent, name) : KFileDetailView(parent, name)
{ {
// pixmap for directory item // pixmap for directory item
dirPix = SQ_IconLoader::instance()->loadIcon("folder", KIcon::Desktop, KIcon::SizeSmall); dirPix = SQ_IconLoader::instance()->loadIcon("folder", KIcon::Desktop, KIcon::SizeSmall);

@ -32,8 +32,8 @@ class KonqFileTip;
class SQ_FileListViewItem : public KFileListViewItem class SQ_FileListViewItem : public KFileListViewItem
{ {
public: public:
SQ_FileListViewItem(TQListView *tqparent, KFileItem *fi); SQ_FileListViewItem(TQListView *parent, KFileItem *fi);
SQ_FileListViewItem(TQListView *tqparent, const TQString &text, const TQPixmap &icon, KFileItem *fi); SQ_FileListViewItem(TQListView *parent, const TQString &text, const TQPixmap &icon, KFileItem *fi);
~SQ_FileListViewItem(); ~SQ_FileListViewItem();
protected: protected:
@ -50,7 +50,7 @@ class SQ_FileDetailView : public KFileDetailView
TQ_OBJECT TQ_OBJECT
public: public:
SQ_FileDetailView(TQWidget* tqparent, const char* name); SQ_FileDetailView(TQWidget* parent, const char* name);
~SQ_FileDetailView(); ~SQ_FileDetailView();
/* /*

@ -19,8 +19,8 @@
#include "sq_filedialog.h" #include "sq_filedialog.h"
SQ_FileDialog::SQ_FileDialog(const TQString &path, TQWidget *tqparent) SQ_FileDialog::SQ_FileDialog(const TQString &path, TQWidget *parent)
: KFileDialog(path, TQString(), tqparent, "select_a_file", true) : KFileDialog(path, TQString(), parent, "select_a_file", true)
{} {}
SQ_FileDialog::~SQ_FileDialog() SQ_FileDialog::~SQ_FileDialog()

@ -27,7 +27,7 @@
class SQ_FileDialog : public KFileDialog class SQ_FileDialog : public KFileDialog
{ {
public: public:
SQ_FileDialog(const TQString &path, TQWidget *tqparent); SQ_FileDialog(const TQString &path, TQWidget *parent);
~SQ_FileDialog(); ~SQ_FileDialog();
TQString nameFilter() const; TQString nameFilter() const;

@ -31,15 +31,15 @@
#include "sq_diroperator.h" #include "sq_diroperator.h"
#include "sq_dragprovider.h" #include "sq_dragprovider.h"
SQ_FileIconViewItem::SQ_FileIconViewItem(TQIconView *tqparent, const TQString &text, SQ_FileIconViewItem::SQ_FileIconViewItem(TQIconView *parent, const TQString &text,
const TQPixmap &pixmap, KFileItem *fi) const TQPixmap &pixmap, KFileItem *fi)
: KFileIconViewItem(tqparent, text, pixmap, fi) : KFileIconViewItem(parent, text, pixmap, fi)
{} {}
SQ_FileIconViewItem::~SQ_FileIconViewItem() SQ_FileIconViewItem::~SQ_FileIconViewItem()
{} {}
SQ_FileIconView::SQ_FileIconView(TQWidget *tqparent, const char *name) : SQ_FileIconViewBase(tqparent, name) SQ_FileIconView::SQ_FileIconView(TQWidget *parent, const char *name) : SQ_FileIconViewBase(parent, name)
{ {
TQString n = name; TQString n = name;

@ -34,7 +34,7 @@ class TQPoint;
class SQ_FileIconViewItem : public KFileIconViewItem class SQ_FileIconViewItem : public KFileIconViewItem
{ {
public: public:
SQ_FileIconViewItem(TQIconView *tqparent, const TQString &text, const TQPixmap &pixmap, KFileItem *fi); SQ_FileIconViewItem(TQIconView *parent, const TQString &text, const TQPixmap &pixmap, KFileItem *fi);
~SQ_FileIconViewItem(); ~SQ_FileIconViewItem();
protected: protected:
@ -51,7 +51,7 @@ class SQ_FileIconView : public SQ_FileIconViewBase
TQ_OBJECT TQ_OBJECT
public: public:
SQ_FileIconView(TQWidget *tqparent = 0, const char *name = ""); SQ_FileIconView(TQWidget *parent = 0, const char *name = "");
~SQ_FileIconView(); ~SQ_FileIconView();
/* /*

@ -32,8 +32,8 @@
#include "sq_fileiconviewbase.h" #include "sq_fileiconviewbase.h"
#include "sq_config.h" #include "sq_config.h"
SQ_FileIconViewBase::SQ_FileIconViewBase(TQWidget *tqparent, const char *name) SQ_FileIconViewBase::SQ_FileIconViewBase(TQWidget *parent, const char *name)
: KFileIconView(tqparent, name) : KFileIconView(parent, name)
{ {
toolTip = new KonqFileTip(this); toolTip = new KonqFileTip(this);
slotResetToolTip(); slotResetToolTip();

@ -33,7 +33,7 @@ class SQ_FileIconViewBase : public KFileIconView
TQ_OBJECT TQ_OBJECT
public: public:
SQ_FileIconViewBase(TQWidget *tqparent = 0, const char *name = 0); SQ_FileIconViewBase(TQWidget *parent = 0, const char *name = 0);
virtual ~SQ_FileIconViewBase(); virtual ~SQ_FileIconViewBase();
virtual void insertCdUpItem(const KURL &base) = 0; virtual void insertCdUpItem(const KURL &base) = 0;

@ -49,7 +49,7 @@
#include "sq_filethumbviewitem.h" #include "sq_filethumbviewitem.h"
#include "sq_dragprovider.h" #include "sq_dragprovider.h"
SQ_FileThumbView::SQ_FileThumbView(TQWidget *tqparent, const char *name) : SQ_FileIconViewBase(tqparent, name), isPending(false) SQ_FileThumbView::SQ_FileThumbView(TQWidget *parent, const char *name) : SQ_FileIconViewBase(parent, name), isPending(false)
{ {
// create progress bar // create progress bar
m_progressBox = new SQ_ProgressBox(this); m_progressBox = new SQ_ProgressBox(this);

@ -43,7 +43,7 @@ class SQ_FileThumbView : public SQ_FileIconViewBase
TQ_OBJECT TQ_OBJECT
public: public:
SQ_FileThumbView(TQWidget *tqparent = 0, const char *name = ""); SQ_FileThumbView(TQWidget *parent = 0, const char *name = "");
~SQ_FileThumbView(); ~SQ_FileThumbView();
bool lazy() const; bool lazy() const;

@ -26,8 +26,8 @@
#include "sq_filethumbviewitem.h" #include "sq_filethumbviewitem.h"
SQ_FileThumbViewItem::SQ_FileThumbViewItem(TQIconView *tqparent, const TQString &text, const TQPixmap &pixmap, KFileItem *fi): SQ_FileThumbViewItem::SQ_FileThumbViewItem(TQIconView *parent, const TQString &text, const TQPixmap &pixmap, KFileItem *fi):
KFileIconViewItem(tqparent, text, pixmap, fi), m_listed(false) KFileIconViewItem(parent, text, pixmap, fi), m_listed(false)
{} {}
SQ_FileThumbViewItem::~SQ_FileThumbViewItem() SQ_FileThumbViewItem::~SQ_FileThumbViewItem()

@ -30,7 +30,7 @@
class SQ_FileThumbViewItem : public KFileIconViewItem class SQ_FileThumbViewItem : public KFileIconViewItem
{ {
public: public:
SQ_FileThumbViewItem(TQIconView *tqparent, const TQString &text, const TQPixmap &pixmap, KFileItem *fi); SQ_FileThumbViewItem(TQIconView *parent, const TQString &text, const TQPixmap &pixmap, KFileItem *fi);
~SQ_FileThumbViewItem(); ~SQ_FileThumbViewItem();
bool listed() const; bool listed() const;

@ -46,7 +46,7 @@
SQ_GLView * SQ_GLView::m_instance = 0; SQ_GLView * SQ_GLView::m_instance = 0;
SQ_GLView::SQ_GLView(TQWidget *tqparent) : TQVBox(tqparent, "ksquirrel-image-window") SQ_GLView::SQ_GLView(TQWidget *parent) : TQVBox(parent, "ksquirrel-image-window")
{ {
m_instance = this; m_instance = this;
@ -209,7 +209,7 @@ void SQ_GLView::resetStatusBar()
names["SBFrame"]->setText(TQString::tqfromLatin1("0/0")); names["SBFrame"]->setText(TQString::tqfromLatin1("0/0"));
} }
SQ_ToolBar::SQ_ToolBar(TQWidget *tqparent) : KToolBar(tqparent) SQ_ToolBar::SQ_ToolBar(TQWidget *parent) : KToolBar(parent)
{ {
setFixedHeight(SQ_ToolButton::fixedWidth() + 5); setFixedHeight(SQ_ToolButton::fixedWidth() + 5);
boxLayout()->setSpacing(0); boxLayout()->setSpacing(0);

@ -36,7 +36,7 @@ class TQLabel;
class SQ_ToolBar : public KToolBar class SQ_ToolBar : public KToolBar
{ {
public: public:
SQ_ToolBar(TQWidget *tqparent); SQ_ToolBar(TQWidget *parent);
~SQ_ToolBar(); ~SQ_ToolBar();
protected: protected:
@ -75,7 +75,7 @@ class SQ_GLView : public TQVBox
TQ_OBJECT TQ_OBJECT
public: public:
SQ_GLView(TQWidget *tqparent = 0); SQ_GLView(TQWidget *parent = 0);
~SQ_GLView(); ~SQ_GLView();
void leftTab(); void leftTab();

@ -105,7 +105,7 @@ static const float SQ_ONSCREEN_LAYER = 10000.0;
/* ***************************************************************************************** */ /* ***************************************************************************************** */
SQ_GLWidget::SQ_GLWidget(TQWidget *tqparent, const char *name) : TQGLWidget(tqparent, name) SQ_GLWidget::SQ_GLWidget(TQWidget *parent, const char *name) : TQGLWidget(parent, name)
{ {
kdDebug() << "+SQ_GLWidget" << endl; kdDebug() << "+SQ_GLWidget" << endl;

@ -127,7 +127,7 @@ class SQ_GLWidget : public TQGLWidget
TQ_OBJECT TQ_OBJECT
public: public:
SQ_GLWidget(TQWidget *tqparent = 0, const char *name = 0); SQ_GLWidget(TQWidget *parent = 0, const char *name = 0);
~SQ_GLWidget(); ~SQ_GLWidget();
void setDownloadPercents(int); void setDownloadPercents(int);

@ -36,8 +36,8 @@
#include "sq_glwidget_helpers.h" #include "sq_glwidget_helpers.h"
SQ_ToolButtonPopup::SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *tqparent) SQ_ToolButtonPopup::SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *parent)
: KToolBarButton(pix, -1, tqparent, 0, textLabel) : KToolBarButton(pix, -1, parent, 0, textLabel)
{ {
setFixedWidth(SQ_ToolButton::fixedWidth()); setFixedWidth(SQ_ToolButton::fixedWidth());
} }
@ -46,8 +46,8 @@ SQ_ToolButtonPopup::~SQ_ToolButtonPopup()
{} {}
SQ_ToolButton::SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, SQ_ToolButton::SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel,
TQObject *receiver, const char *slot, KToolBar *tqparent, const char *name) TQObject *receiver, const char *slot, KToolBar *parent, const char *name)
: TQToolButton(iconSet, textLabel, TQString(), receiver, slot, tqparent, name) : TQToolButton(iconSet, textLabel, TQString(), receiver, slot, parent, name)
{ {
setFixedWidth(SQ_ToolButton::fixedWidth()); setFixedWidth(SQ_ToolButton::fixedWidth());
} }

@ -29,7 +29,7 @@ struct RGBA;
class SQ_ToolButtonPopup : public KToolBarButton class SQ_ToolButtonPopup : public KToolBarButton
{ {
public: public:
SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *tqparent); SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *parent);
~SQ_ToolButtonPopup(); ~SQ_ToolButtonPopup();
}; };
@ -37,7 +37,7 @@ class SQ_ToolButton : public TQToolButton
{ {
public: public:
SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, TQObject *receiver, SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, TQObject *receiver,
const char *slot, KToolBar *tqparent, const char *name = 0); const char *slot, KToolBar *parent, const char *name = 0);
~SQ_ToolButton(); ~SQ_ToolButton();
static int fixedWidth(); static int fixedWidth();

@ -22,7 +22,7 @@
#include "sq_iconlistbox.h" #include "sq_iconlistbox.h"
#include "sq_iconlistitem.h" #include "sq_iconlistitem.h"
SQ_IconListBox::SQ_IconListBox(TQWidget *tqparent, const char *name, WFlags f) : KListBox(tqparent, name, f), SQ_IconListBox::SQ_IconListBox(TQWidget *parent, const char *name, WFlags f) : KListBox(parent, name, f),
mHeightValid(false), mWidthValid(false) mHeightValid(false), mWidthValid(false)
{ {
setHScrollBarMode(TQScrollView::AlwaysOff); setHScrollBarMode(TQScrollView::AlwaysOff);

@ -58,14 +58,14 @@ const TQPixmap& SQ_IconListItem::defaultPixmap()
p.drawRect(0, 0, pix->width(), pix->height()); p.drawRect(0, 0, pix->width(), pix->height());
p.end(); p.end();
TQBitmap tqmask(pix->width(), pix->height(), true); TQBitmap mask(pix->width(), pix->height(), true);
tqmask.fill(TQt::black); mask.fill(TQt::black);
p.begin(&tqmask); p.begin(&mask);
p.setPen(TQt::white); p.setPen(TQt::white);
p.drawRect(0, 0, pix->width(), pix->height()); p.drawRect(0, 0, pix->width(), pix->height());
p.end(); p.end();
pix->setMask(tqmask); pix->setMask(mask);
} }
return *pix; return *pix;

@ -27,7 +27,7 @@
SQ_IconLoader * SQ_IconLoader::m_instance = 0; SQ_IconLoader * SQ_IconLoader::m_instance = 0;
SQ_IconLoader::SQ_IconLoader(TQObject *tqparent) : TQObject(tqparent) SQ_IconLoader::SQ_IconLoader(TQObject *parent) : TQObject(parent)
{ {
m_instance = this; m_instance = this;

@ -32,7 +32,7 @@
class SQ_IconLoader : public TQObject class SQ_IconLoader : public TQObject
{ {
public: public:
SQ_IconLoader(TQObject *tqparent = 0); SQ_IconLoader(TQObject *parent = 0);
~SQ_IconLoader(); ~SQ_IconLoader();
TQPixmap loadIcon(const TQString &name, KIcon::Group group = KIcon::Desktop, int size = 16) const; TQPixmap loadIcon(const TQString &name, KIcon::Group group = KIcon::Desktop, int size = 16) const;

@ -34,7 +34,7 @@
SQ_ImageLoader * SQ_ImageLoader::m_instance = 0; SQ_ImageLoader * SQ_ImageLoader::m_instance = 0;
SQ_ImageLoader::SQ_ImageLoader(TQObject *tqparent) : TQObject(tqparent), m_errors(0) SQ_ImageLoader::SQ_ImageLoader(TQObject *parent) : TQObject(parent), m_errors(0)
{ {
m_instance = this; m_instance = this;

@ -38,7 +38,7 @@ struct SQ_LIBRARY;
class SQ_ImageLoader : public TQObject class SQ_ImageLoader : public TQObject
{ {
public: public:
SQ_ImageLoader(TQObject *tqparent); SQ_ImageLoader(TQObject *parent);
~SQ_ImageLoader(); ~SQ_ImageLoader();
/* /*

@ -111,8 +111,8 @@ class SQ_KIPIImageInfo : public KIPI::ImageInfoShared
/***************************************************************/ /***************************************************************/
SQ_KIPIInterface::SQ_KIPIInterface(TQWidget *tqparent) SQ_KIPIInterface::SQ_KIPIInterface(TQWidget *parent)
: KIPI::Interface(TQT_TQOBJECT(tqparent), "KSquirrel KIPI Interface") : KIPI::Interface(TQT_TQOBJECT(parent), "KSquirrel KIPI Interface")
{ {
connect(SQ_WidgetStack::instance()->diroperator(), TQT_SIGNAL(fileHighlighted(const KFileItem *)), connect(SQ_WidgetStack::instance()->diroperator(), TQT_SIGNAL(fileHighlighted(const KFileItem *)),
this, TQT_SLOT(slotSelectionChanged())); this, TQT_SLOT(slotSelectionChanged()));

@ -38,7 +38,7 @@ class SQ_KIPIInterface : public KIPI::Interface
TQ_OBJECT TQ_OBJECT
public: public:
SQ_KIPIInterface(TQWidget *tqparent); SQ_KIPIInterface(TQWidget *parent);
~SQ_KIPIInterface(); ~SQ_KIPIInterface();
KIPI::ImageCollection currentAlbum(); KIPI::ImageCollection currentAlbum();

@ -35,12 +35,12 @@
#include "sq_kipiinterface.h" #include "sq_kipiinterface.h"
SQ_ActionMenu::SQ_ActionMenu(const TQString &text, TQObject *tqparent, const char *name) SQ_ActionMenu::SQ_ActionMenu(const TQString &text, TQObject *parent, const char *name)
: KActionMenu(text, tqparent, name) : KActionMenu(text, parent, name)
{} {}
SQ_ActionMenu::SQ_ActionMenu(const TQString &text, const TQString &icon, TQObject *tqparent, const char *name) SQ_ActionMenu::SQ_ActionMenu(const TQString &text, const TQString &icon, TQObject *parent, const char *name)
: KActionMenu(text, icon, tqparent, name) : KActionMenu(text, icon, parent, name)
{} {}
SQ_ActionMenu::~SQ_ActionMenu() SQ_ActionMenu::~SQ_ActionMenu()
@ -60,7 +60,7 @@ void SQ_ActionMenu::insert(KAction *ka, int index)
/***********************************************************************/ /***********************************************************************/
SQ_KIPIManager::SQ_KIPIManager(TQWidget *_parent, const char *name) : TQObject(_parent, name), tqparent(_parent) SQ_KIPIManager::SQ_KIPIManager(TQWidget *_parent, const char *name) : TQObject(_parent, name), parent(_parent)
{ {
kdDebug() << "+SQ_KIPIManager" << endl; kdDebug() << "+SQ_KIPIManager" << endl;
@ -147,7 +147,7 @@ void SQ_KIPIManager::slotReplug()
if (!plugin) continue; if (!plugin) continue;
plugin->setup(tqparent); plugin->setup(parent);
KActionPtrList actions = plugin->actions(); KActionPtrList actions = plugin->actions();
KActionPtrList::ConstIterator actionIt = actions.begin(), end = actions.end(); KActionPtrList::ConstIterator actionIt = actions.begin(), end = actions.end();

@ -49,8 +49,8 @@ class KPopupMenu;
class SQ_ActionMenu : public KActionMenu class SQ_ActionMenu : public KActionMenu
{ {
public: public:
SQ_ActionMenu(const TQString &text, TQObject *tqparent = 0, const char *name = 0); SQ_ActionMenu(const TQString &text, TQObject *parent = 0, const char *name = 0);
SQ_ActionMenu(const TQString &text, const TQString &icon, TQObject *tqparent = 0, const char *name = 0); SQ_ActionMenu(const TQString &text, const TQString &icon, TQObject *parent = 0, const char *name = 0);
/* /*
* remove() all KActions currently plugged. * remove() all KActions currently plugged.
@ -105,7 +105,7 @@ class SQ_KIPIManager : public TQObject
KIPI::PluginLoader *mPluginLoader; KIPI::PluginLoader *mPluginLoader;
CategoryMap cmenus; CategoryMap cmenus;
KAction *noPlugin; KAction *noPlugin;
TQWidget *tqparent; TQWidget *parent;
KPopupMenu *p; KPopupMenu *p;
bool loaded; bool loaded;
}; };

@ -46,8 +46,8 @@ static const int buffer_size = 10;
SQ_LibraryHandler * SQ_LibraryHandler::m_instance = 0; SQ_LibraryHandler * SQ_LibraryHandler::m_instance = 0;
// SQ_LibraryHandler // SQ_LibraryHandler
SQ_LibraryHandler::SQ_LibraryHandler(TQObject *tqparent) SQ_LibraryHandler::SQ_LibraryHandler(TQObject *parent)
: TQObject(tqparent), TQValueVector<SQ_LIBRARY>() : TQObject(parent), TQValueVector<SQ_LIBRARY>()
{ {
m_instance = this; m_instance = this;

@ -37,7 +37,7 @@ class KURL;
class SQ_LibraryHandler : public TQObject, public TQValueVector<SQ_LIBRARY> class SQ_LibraryHandler : public TQObject, public TQValueVector<SQ_LIBRARY>
{ {
public: public:
SQ_LibraryHandler(TQObject *tqparent = 0); SQ_LibraryHandler(TQObject *parent = 0);
~SQ_LibraryHandler(); ~SQ_LibraryHandler();
enum Support { Maybe = 0, Yes, No }; enum Support { Maybe = 0, Yes, No };

@ -30,7 +30,7 @@
SQ_NavigatorDropMenu * SQ_NavigatorDropMenu::m_instance= 0; SQ_NavigatorDropMenu * SQ_NavigatorDropMenu::m_instance= 0;
SQ_NavigatorDropMenu::SQ_NavigatorDropMenu(TQObject *tqparent) : TQObject(tqparent) SQ_NavigatorDropMenu::SQ_NavigatorDropMenu(TQObject *parent) : TQObject(parent)
{ {
m_instance = this; m_instance = this;

@ -49,7 +49,7 @@ class SQ_NavigatorDropMenu : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
SQ_NavigatorDropMenu(TQObject *tqparent = 0); SQ_NavigatorDropMenu(TQObject *parent = 0);
~SQ_NavigatorDropMenu(); ~SQ_NavigatorDropMenu();
static SQ_NavigatorDropMenu* instance() { return m_instance; } static SQ_NavigatorDropMenu* instance() { return m_instance; }

@ -25,8 +25,8 @@
SQ_PixmapCache * SQ_PixmapCache::m_instance = 0; SQ_PixmapCache * SQ_PixmapCache::m_instance = 0;
SQ_PixmapCache::SQ_PixmapCache(TQObject *tqparent, int limit) SQ_PixmapCache::SQ_PixmapCache(TQObject *parent, int limit)
: TQObject(tqparent), TQMap<KURL, SQ_Thumbnail>() : TQObject(parent), TQMap<KURL, SQ_Thumbnail>()
{ {
m_instance = this; m_instance = this;
cache_limit = limit << 10; cache_limit = limit << 10;

@ -37,7 +37,7 @@ class SQ_DirThumbs;
class SQ_PixmapCache : public TQObject, public TQMap<KURL, SQ_Thumbnail> class SQ_PixmapCache : public TQObject, public TQMap<KURL, SQ_Thumbnail>
{ {
public: public:
SQ_PixmapCache(TQObject *tqparent, int limit = 20*1024); SQ_PixmapCache(TQObject *parent, int limit = 20*1024);
~SQ_PixmapCache(); ~SQ_PixmapCache();
/* /*

@ -21,8 +21,8 @@
#include "sq_popupmenu.h" #include "sq_popupmenu.h"
SQ_PopupMenu::SQ_PopupMenu(TQWidget *tqparent, const char *name) SQ_PopupMenu::SQ_PopupMenu(TQWidget *parent, const char *name)
: KPopupMenu(tqparent, name), title(0) : KPopupMenu(parent, name), title(0)
{} {}
SQ_PopupMenu::~SQ_PopupMenu() SQ_PopupMenu::~SQ_PopupMenu()

@ -27,7 +27,7 @@
class SQ_PopupMenu : public KPopupMenu class SQ_PopupMenu : public KPopupMenu
{ {
public: public:
SQ_PopupMenu(TQWidget *tqparent = 0, const char *name = 0); SQ_PopupMenu(TQWidget *parent = 0, const char *name = 0);
~SQ_PopupMenu(); ~SQ_PopupMenu();
void insertTitle(const TQString &t); void insertTitle(const TQString &t);

@ -29,8 +29,8 @@
#include "sq_progress.h" #include "sq_progress.h"
SQ_Progress::SQ_Progress(TQWidget *tqparent, const char *name) SQ_Progress::SQ_Progress(TQWidget *parent, const char *name)
: TQLabel(tqparent, name, TQt::WNoAutoErase), m_text(true), painter(0) : TQLabel(parent, name, TQt::WNoAutoErase), m_text(true), painter(0)
{} {}
SQ_Progress::~SQ_Progress() SQ_Progress::~SQ_Progress()

@ -30,7 +30,7 @@ class TQPainter;
class SQ_Progress : public TQLabel class SQ_Progress : public TQLabel
{ {
public: public:
SQ_Progress(TQWidget *tqparent = 0, const char *name = 0); SQ_Progress(TQWidget *parent = 0, const char *name = 0);
~SQ_Progress(); ~SQ_Progress();
void setTotalSteps(int totalSteps); void setTotalSteps(int totalSteps);

@ -24,13 +24,13 @@
#include "sq_iconloader.h" #include "sq_iconloader.h"
#include "sq_progressbox.h" #include "sq_progressbox.h"
SQ_ProgressBox::SQ_ProgressBox(TQWidget *tqparent, const char *name) : TQHBox(tqparent, name) SQ_ProgressBox::SQ_ProgressBox(TQWidget *parent, const char *name) : TQHBox(parent, name)
{ {
// TQToolBar *progressBoxBar = new TQToolBar(TQString(), NULL, this); // TQToolBar *progressBoxBar = new TQToolBar(TQString(), NULL, this);
buttonStop = new TQPushButton(this); buttonStop = new TQPushButton(this);
buttonStop->setFlat(true); buttonStop->setFlat(true);
buttonStop->setPixmap(SQ_IconLoader::instance()->loadIcon("player_stop", KIcon::Desktop, KIcon::SizeSmall)); buttonStop->setPixmap(SQ_IconLoader::instance()->loadIcon("player_stop", KIcon::Desktop, KIcon::SizeSmall));
connect(buttonStop, TQT_SIGNAL(clicked()), tqparent, TQT_SLOT(slotThumbnailUpdateToggle())); connect(buttonStop, TQT_SIGNAL(clicked()), parent, TQT_SLOT(slotThumbnailUpdateToggle()));
// create progress bar // create progress bar
p = new SQ_Progress(this); p = new SQ_Progress(this);

@ -27,7 +27,7 @@ class TQPushButton;
class SQ_ProgressBox : public TQHBox class SQ_ProgressBox : public TQHBox
{ {
public: public:
SQ_ProgressBox(TQWidget * tqparent = 0, const char * name = 0); SQ_ProgressBox(TQWidget * parent = 0, const char * name = 0);
~SQ_ProgressBox(); ~SQ_ProgressBox();
SQ_Progress* progressBar() const; SQ_Progress* progressBar() const;

@ -27,7 +27,7 @@
<cstring>textLabel1</cstring> <cstring>textLabel1</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Filename or tqmask:</string> <string>Filename or mask:</string>
</property> </property>
</widget> </widget>
<widget class="TQComboBox" row="0" column="1"> <widget class="TQComboBox" row="0" column="1">
@ -100,7 +100,7 @@
</Q_SLOTS> </Q_SLOTS>
<functions> <functions>
<function access="private" specifier="non virtual">init()</function> <function access="private" specifier="non virtual">init()</function>
<function returnType="int">exec( TQString &amp; tqmask )</function> <function returnType="int">exec( TQString &amp; mask )</function>
</functions> </functions>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -31,7 +31,7 @@ void SQ_SelectDeselectGroup::init()
#endif #endif
} }
int SQ_SelectDeselectGroup::exec(TQString &tqmask) int SQ_SelectDeselectGroup::exec(TQString &mask)
{ {
int result = TQDialog::exec(); int result = TQDialog::exec();
@ -47,11 +47,11 @@ int SQ_SelectDeselectGroup::exec(TQString &tqmask)
SQ_Config::instance()->setGroup("Fileview"); SQ_Config::instance()->setGroup("Fileview");
SQ_Config::instance()->writeEntry("selectdeselecthistory", list); SQ_Config::instance()->writeEntry("selectdeselecthistory", list);
// save tqmask // save mask
tqmask = comboMask->currentText(); mask = comboMask->currentText();
} }
return tqmask.isEmpty() ? TQDialog::Rejected : result; return mask.isEmpty() ? TQDialog::Rejected : result;
} }
void SQ_SelectDeselectGroup::slotEdit() void SQ_SelectDeselectGroup::slotEdit()

@ -50,8 +50,8 @@
SQ_SlideShowWidget * SQ_SlideShowWidget::m_inst = 0; SQ_SlideShowWidget * SQ_SlideShowWidget::m_inst = 0;
SQ_SlideShowWidget::SQ_SlideShowWidget(TQWidget *tqparent, const char *name) SQ_SlideShowWidget::SQ_SlideShowWidget(TQWidget *parent, const char *name)
: TQWidget(tqparent,name, TQt::WStyle_Customize | TQt::WStyle_NoBorder | TQt::WStyle_StaysOnTop | TQt::WNoAutoErase) : TQWidget(parent,name, TQt::WStyle_Customize | TQt::WStyle_NoBorder | TQt::WStyle_StaysOnTop | TQt::WNoAutoErase)
{ {
m_inst = this; m_inst = this;

@ -41,7 +41,7 @@ class SQ_SlideShowWidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
SQ_SlideShowWidget(TQWidget *tqparent = 0, const char *name = 0); SQ_SlideShowWidget(TQWidget *parent = 0, const char *name = 0);
~SQ_SlideShowWidget(); ~SQ_SlideShowWidget();
void beginSlideShow(int totl); void beginSlideShow(int totl);

@ -48,8 +48,8 @@
SQ_SplashScreen * SQ_SplashScreen::m_inst = 0; SQ_SplashScreen * SQ_SplashScreen::m_inst = 0;
SQ_SplashScreen::SQ_SplashScreen(TQWidget * tqparent, const char *name) SQ_SplashScreen::SQ_SplashScreen(TQWidget * parent, const char *name)
: TQWidget(tqparent, name, : TQWidget(parent, name,
TQt::WStyle_Customize | TQt::WStyle_Customize |
TQt::WStyle_NoBorder | TQt::WStyle_NoBorder |
TQt::WStyle_StaysOnTop | TQt::WStyle_StaysOnTop |

@ -44,7 +44,7 @@ class SQ_Progress;
class SQ_SplashScreen : public TQWidget class SQ_SplashScreen : public TQWidget
{ {
public: public:
SQ_SplashScreen(TQWidget *tqparent = 0, const char *name = 0); SQ_SplashScreen(TQWidget *parent = 0, const char *name = 0);
~SQ_SplashScreen(); ~SQ_SplashScreen();
static void advance(); static void advance();

@ -58,7 +58,7 @@
#define SQ_PREDOWNLOAD_SIZE 20 #define SQ_PREDOWNLOAD_SIZE 20
SQ_ThumbnailLoadJob::SQ_ThumbnailLoadJob(const KFileItemList &items, SQ_FileThumbView *parnt) SQ_ThumbnailLoadJob::SQ_ThumbnailLoadJob(const KFileItemList &items, SQ_FileThumbView *parnt)
: KIO::Job(false), tqparent(parnt) : KIO::Job(false), parent(parnt)
{ {
mBrokenThumbnail.thumbnail = KGlobal::iconLoader()->loadIcon("file_broken", KIcon::Desktop, SQ_ThumbnailSize::smallest()); mBrokenThumbnail.thumbnail = KGlobal::iconLoader()->loadIcon("file_broken", KIcon::Desktop, SQ_ThumbnailSize::smallest());
mItems = items; mItems = items;
@ -177,7 +177,7 @@ void SQ_ThumbnailLoadJob::determineNextIcon()
SQ_WidgetStack::instance()->thumbnailProcess(); SQ_WidgetStack::instance()->thumbnailProcess();
tfi = reinterpret_cast<SQ_FileThumbViewItem *>(item->extraData(tqparent)); tfi = reinterpret_cast<SQ_FileThumbViewItem *>(item->extraData(parent));
// 1) local urls that are 100% supported, or // 1) local urls that are 100% supported, or
// 2) remote urls that are 100% supported or _maybe_ supported (application/octet-stream) // 2) remote urls that are 100% supported or _maybe_ supported (application/octet-stream)

@ -96,7 +96,7 @@ class SQ_ThumbnailLoadJob : public KIO::Job
SQ_DirThumbs *dir; SQ_DirThumbs *dir;
SQ_Thumbnail mBrokenThumbnail; SQ_Thumbnail mBrokenThumbnail;
SQ_FileThumbView *tqparent; SQ_FileThumbView *parent;
}; };
#endif #endif

@ -31,14 +31,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
SQ_ThumbnailSize * SQ_ThumbnailSize::m_instance = 0; SQ_ThumbnailSize * SQ_ThumbnailSize::m_instance = 0;
SQ_ThumbnailSize::SQ_ThumbnailSize(TQObject *tqparent, Size value) SQ_ThumbnailSize::SQ_ThumbnailSize(TQObject *parent, Size value)
: TQObject(tqparent), mValue(value), m_extended(false), m_margin(16) : TQObject(parent), mValue(value), m_extended(false), m_margin(16)
{ {
m_instance = this; m_instance = this;
} }
SQ_ThumbnailSize::SQ_ThumbnailSize(TQObject *tqparent, const TQString& str) SQ_ThumbnailSize::SQ_ThumbnailSize(TQObject *parent, const TQString& str)
: TQObject(tqparent), m_extended(false), m_margin(16) : TQObject(parent), m_extended(false), m_margin(16)
{ {
TQString low = str.lower(); TQString low = str.lower();

@ -38,8 +38,8 @@ class SQ_ThumbnailSize : public TQObject
public: public:
enum Size { Medium, Large, Huge }; enum Size { Medium, Large, Huge };
SQ_ThumbnailSize(TQObject *tqparent, Size value); SQ_ThumbnailSize(TQObject *parent, Size value);
SQ_ThumbnailSize(TQObject *tqparent, const TQString& str); SQ_ThumbnailSize(TQObject *parent, const TQString& str);
void setExtended(bool); void setExtended(bool);
bool extended() const; bool extended() const;

@ -21,7 +21,7 @@
SQ_ThumbnailsUnused * SQ_ThumbnailsUnused::m_instance = 0; SQ_ThumbnailsUnused * SQ_ThumbnailsUnused::m_instance = 0;
SQ_ThumbnailsUnused::SQ_ThumbnailsUnused(TQObject *tqparent) : TQObject(tqparent), TQMap<KURL, time_t>() SQ_ThumbnailsUnused::SQ_ThumbnailsUnused(TQObject *parent) : TQObject(parent), TQMap<KURL, time_t>()
{ {
m_instance = this; m_instance = this;

@ -37,7 +37,7 @@ class KConfig;
class SQ_ThumbnailsUnused : public TQObject, public TQMap<KURL, time_t> class SQ_ThumbnailsUnused : public TQObject, public TQMap<KURL, time_t>
{ {
public: public:
SQ_ThumbnailsUnused(TQObject *tqparent = 0); SQ_ThumbnailsUnused(TQObject *parent = 0);
~SQ_ThumbnailsUnused(); ~SQ_ThumbnailsUnused();
bool needUpdate(const KURL &u, time_t t); bool needUpdate(const KURL &u, time_t t);

@ -60,7 +60,7 @@
SQ_WidgetStack * SQ_WidgetStack::m_instance = 0; SQ_WidgetStack * SQ_WidgetStack::m_instance = 0;
SQ_WidgetStack::SQ_WidgetStack(TQWidget *tqparent, const int id) : TQObject(tqparent) SQ_WidgetStack::SQ_WidgetStack(TQWidget *parent, const int id) : TQObject(parent)
{ {
m_instance = this; m_instance = this;
@ -85,7 +85,7 @@ SQ_WidgetStack::SQ_WidgetStack(TQWidget *tqparent, const int id) : TQObject(tqpa
else // path from command line else // path from command line
url = SQ_HLOptions::instance()->dir; url = SQ_HLOptions::instance()->dir;
dirop = new SQ_DirOperator(url, static_cast<SQ_DirOperator::ViewT>(id), tqparent); dirop = new SQ_DirOperator(url, static_cast<SQ_DirOperator::ViewT>(id), parent);
raiseWidget(m_type, false); raiseWidget(m_type, false);
@ -684,7 +684,7 @@ void SQ_WidgetStack::slotDeselectGroup()
*/ */
void SQ_WidgetStack::selectDeselectGroup(bool select) void SQ_WidgetStack::selectDeselectGroup(bool select)
{ {
TQString tqmask; TQString mask;
KFileView *local = dirop->view(); KFileView *local = dirop->view();
@ -693,14 +693,14 @@ void SQ_WidgetStack::selectDeselectGroup(bool select)
sd.setCaption(select ? i18n("Select a group of files") : i18n("Deselect a group of files")); sd.setCaption(select ? i18n("Select a group of files") : i18n("Deselect a group of files"));
sd.pushMask->setText(select ? i18n("Select !") : i18n("Deselect !")); sd.pushMask->setText(select ? i18n("Select !") : i18n("Deselect !"));
if(sd.exec(tqmask) == TQDialog::Accepted) if(sd.exec(mask) == TQDialog::Accepted)
{ {
if(select) if(select)
local->clearSelection(); local->clearSelection();
KFileItemList *sd_files = const_cast<KFileItemList *>(items()); KFileItemList *sd_files = const_cast<KFileItemList *>(items());
KFileItem *i; KFileItem *i;
TQRegExp exp(tqmask); TQRegExp exp(mask);
exp.setWildcard(true); exp.setWildcard(true);
if(!sd_files) if(!sd_files)

@ -55,7 +55,7 @@ class SQ_WidgetStack : public TQObject
* 2 = Detail view * 2 = Detail view
* 3 = Thumbnail view * 3 = Thumbnail view
*/ */
SQ_WidgetStack(TQWidget *tqparent, const int id); SQ_WidgetStack(TQWidget *parent, const int id);
~SQ_WidgetStack(); ~SQ_WidgetStack();

Loading…
Cancel
Save