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"
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);

@ -27,7 +27,7 @@
class SQ_BCGLabel : public TQLabel
{
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();
};

@ -44,7 +44,7 @@
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;

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

@ -21,7 +21,7 @@
#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()

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

@ -28,11 +28,11 @@
#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'.
*/
KLC::KLC( TQWidget* tqparent, const char* name, WFlags fl )
: TQWidget( tqparent, name, fl )
KLC::KLC( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( parent, name, fl )
{
if ( !name )
setName( "KLC" );

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

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

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

@ -17,7 +17,7 @@
#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);

@ -27,7 +27,7 @@
class SQ_BCGLabel : public TQLabel
{
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();
};

@ -23,7 +23,7 @@
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;

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

@ -25,7 +25,7 @@
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;
@ -75,12 +75,12 @@ void SQ_DirOperator::slotDownloadPercents(int 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;
list.append(u);
KonqOperations::del(tqparent, KonqOperations::DEL, list);
KonqOperations::del(parent, KonqOperations::DEL, list);
}
#include "sq_diroperator.moc"

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

@ -30,7 +30,7 @@
#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->setAutoDelete(true);

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

@ -25,7 +25,7 @@
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;

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

@ -45,7 +45,7 @@ Tool::Tool(const TQString &pix, const TQString &nam, const TQString &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;
menu = new SQ_PopupMenu(0, "External tools");

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

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

@ -27,7 +27,7 @@
class SQ_FileDialog : public KFileDialog
{
public:
SQ_FileDialog(const TQString &path, TQWidget *tqparent);
SQ_FileDialog(const TQString &path, TQWidget *parent);
~SQ_FileDialog();
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 = "---";
}

@ -28,7 +28,7 @@ class SQ_TextSetter : public TQObject
TQ_OBJECT
public:
SQ_TextSetter(TQObject *tqparent = 0);
SQ_TextSetter(TQObject *parent = 0);
~SQ_TextSetter();
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;

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

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

@ -29,7 +29,7 @@ struct RGBA;
class SQ_ToolButtonPopup : public KToolBarButton
{
public:
SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *tqparent);
SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *parent);
~SQ_ToolButtonPopup();
};
@ -37,7 +37,7 @@ class SQ_ToolButton : public TQToolButton
{
public:
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();
static int fixedWidth();

@ -27,7 +27,7 @@
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;

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

@ -21,7 +21,7 @@
#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()

@ -23,7 +23,7 @@
class SQ_Label : public TQWidget
{
public:
SQ_Label(TQWidget *tqparent = 0, const char *name = 0);
SQ_Label(TQWidget *parent = 0, const char *name = 0);
~SQ_Label();
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::SQ_LibraryHandler(TQObject *tqparent)
: TQObject(tqparent), TQValueVector<SQ_LIBRARY>()
SQ_LibraryHandler::SQ_LibraryHandler(TQObject *parent)
: TQObject(parent), TQValueVector<SQ_LIBRARY>()
{
m_instance = this;

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

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

@ -27,7 +27,7 @@
class SQ_PopupMenu : public KPopupMenu
{
public:
SQ_PopupMenu(TQWidget *tqparent = 0, const char *name = 0);
SQ_PopupMenu(TQWidget *parent = 0, const char *name = 0);
~SQ_PopupMenu();
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)
: KFileTreeBranch(tqparent, url, name, pix)
SQ_CategoriesViewBranch::SQ_CategoriesViewBranch(KFileTreeView *parent, const KURL &url, const TQString &name, const TQPixmap &pix)
: KFileTreeBranch(parent, url, name, pix)
{}
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.
@ -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);
@ -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;
@ -222,7 +222,7 @@ void SQ_CategoriesBox::slotNewCategory()
if(!cur) return;
if(!cur->isDir())
cur = static_cast<KFileTreeViewItem *>(cur->tqparent());
cur = static_cast<KFileTreeViewItem *>(cur->parent());
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);

@ -42,7 +42,7 @@ class SQ_CategoriesViewBranch : public KFileTreeBranch
~SQ_CategoriesViewBranch();
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
public:
SQ_CategoriesView(TQWidget *tqparent = 0, const char *name = 0);
SQ_CategoriesView(TQWidget *parent = 0, const char *name = 0);
~SQ_CategoriesView();
SQ_TreeViewMenu *popupMenu() const;
@ -91,7 +91,7 @@ class SQ_CategoriesBox : public TQVBox
TQ_OBJECT
public:
SQ_CategoriesBox(TQWidget *tqparent = 0, const char *name = 0);
SQ_CategoriesBox(TQWidget *parent = 0, const char *name = 0);
~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;
SQ_CategoryBrowserMenu::SQ_CategoryBrowserMenu(TQString path, TQWidget *tqparent, const char *name, int startid)
: KPanelMenu(path, tqparent, name)
SQ_CategoryBrowserMenu::SQ_CategoryBrowserMenu(TQString path, TQWidget *parent, const char *name, int startid)
: KPanelMenu(path, parent, name)
, _mimecheckTimer(0)
, _startid(startid)
, _dirty(false)

@ -42,7 +42,7 @@ class SQ_CategoryBrowserMenu : public KPanelMenu
TQ_OBJECT
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();
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();
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)
{}
SQ_DirectoryItem::SQ_DirectoryItem(KFileTreeView *tqparent, KFileItem *fileItem, KFileTreeBranch *parentBranch)
: KFileTreeViewItem(tqparent, fileItem, parentBranch), m_index(0)
SQ_DirectoryItem::SQ_DirectoryItem(KFileTreeView *parent, KFileItem *fileItem, KFileTreeBranch *parentBranch)
: KFileTreeViewItem(parent, fileItem, parentBranch), m_index(0)
{}
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)
: KFileTreeBranch(tqparent, url, name, pix)
SQ_DirectoryBasketBranch::SQ_DirectoryBasketBranch(KFileTreeView *parent, const KURL &url, const TQString &name, const TQPixmap &pix)
: KFileTreeBranch(parent, url, name, pix)
{}
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;
// hehe...
fileItem->setMimeType("inode/directory");
SQ_DirectoryItem *i = new SQ_DirectoryItem(tqparent, fileItem, this);
SQ_DirectoryItem *i = new SQ_DirectoryItem(parent, fileItem, this);
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;
@ -307,7 +307,7 @@ void SQ_DirectoryBasket::slotDropped(TQDropEvent *e, TQListViewItem *_parent, TQ
if(!_item) _item = _parent;
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;
KURLDrag::decode(e, list);
@ -329,9 +329,9 @@ void SQ_DirectoryBasket::slotDropped(TQDropEvent *e, TQListViewItem *_parent, TQ
if(it)
{
if(it != root->root())
moveItem(tomove, tqparent, it);
moveItem(tomove, parent, it);
else
moveItem(tomove, tqparent, 0);
moveItem(tomove, parent, 0);
emit moved();

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

@ -38,7 +38,7 @@
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;

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

@ -34,7 +34,7 @@
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;

@ -36,7 +36,7 @@ class SQ_MountView : public KListView
TQ_OBJECT
public:
SQ_MountView(TQWidget *tqparent = 0, const char *name = 0);
SQ_MountView(TQWidget *parent = 0, const char *name = 0);
~SQ_MountView();
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_iconloader.h"
SQ_MountViewItem::SQ_MountViewItem(KListView *tqparent, const TQString &mpoint)
: KListViewItem(tqparent, mpoint), m_mounted(false)
SQ_MountViewItem::SQ_MountViewItem(KListView *parent, const TQString &mpoint)
: KListViewItem(parent, mpoint), m_mounted(false)
{}
SQ_MountViewItem::~SQ_MountViewItem()

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

@ -34,7 +34,7 @@
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_id = 0;

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

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

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

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

@ -45,26 +45,26 @@
SQ_TreeView * SQ_TreeView::m_instance = 0;
SQ_FileTreeViewBranch::SQ_FileTreeViewBranch(KFileTreeView *tqparent, const KURL &url,
const TQString &name, const TQPixmap &pix) : KFileTreeBranch(tqparent, url, name, pix)
SQ_FileTreeViewBranch::SQ_FileTreeViewBranch(KFileTreeView *parent, const KURL &url,
const TQString &name, const TQPixmap &pix) : KFileTreeBranch(parent, url, name, pix)
{}
SQ_FileTreeViewBranch::~SQ_FileTreeViewBranch()
{}
KFileTreeViewItem* SQ_FileTreeViewBranch::createTreeViewItem(KFileTreeViewItem *tqparent, KFileItem *fileItem)
KFileTreeViewItem* SQ_FileTreeViewBranch::createTreeViewItem(KFileTreeViewItem *parent, KFileItem *fileItem)
{
KFileTreeViewItem *tvi = 0;
if(tqparent && fileItem)
tvi = new SQ_TreeViewItem(tqparent, fileItem, this);
if(parent && fileItem)
tvi = new SQ_TreeViewItem(parent, fileItem, this);
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;
@ -552,7 +552,7 @@ void SQ_TreeView::contentsMousePressEvent(TQMouseEvent *e)
{
TQListViewItemIterator it(this);
// toggle tqparent item
// toggle parent item
if(state == TQt::ShiftButton) toggle(m, true);
else if(state == TQt::ControlButton) toggle(m, false, true);
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());
}
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);

@ -40,7 +40,7 @@ class SQ_FileTreeViewBranch : public KFileTreeBranch
~SQ_FileTreeViewBranch();
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
public:
SQ_TreeView(TQWidget *tqparent = 0, const char *name = 0);
SQ_TreeView(TQWidget *parent = 0, const char *name = 0);
~SQ_TreeView();
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)
{}
SQ_TreeViewItem::SQ_TreeViewItem(KFileTreeView *tqparent, KFileItem *fileItem, KFileTreeBranch *parentBranch)
: KFileTreeViewItem(tqparent, fileItem, parentBranch),
SQ_TreeViewItem::SQ_TreeViewItem(KFileTreeView *parent, KFileItem *fileItem, KFileTreeBranch *parentBranch)
: KFileTreeViewItem(parent, fileItem, parentBranch),
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:
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();
bool checked() const;

@ -13,7 +13,7 @@
#include "ksquirrel.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()));
insertSeparator();

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

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

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

@ -23,7 +23,7 @@
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;
}

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

@ -23,7 +23,7 @@
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;

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

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

@ -54,7 +54,7 @@ class SQ_DirOperator : public KDirOperator
* View type is determined by 'type_'.
*/
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();
@ -121,7 +121,7 @@ class SQ_DirOperator : public KDirOperator
/*
* Reimplement createView() to create custom views.
*/
virtual KFileView* createView(TQWidget *tqparent, KFile::FileView view);
virtual KFileView* createView(TQWidget *parent, KFile::FileView view);
private:
void itemKill(KFileItem *);

@ -30,7 +30,7 @@
#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->setAutoDelete(true);

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

@ -40,7 +40,7 @@
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;
}

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

@ -25,7 +25,7 @@
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;

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

@ -45,7 +45,7 @@ Tool::Tool(const TQString &pix, const TQString &nam, const TQString &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;
menu = new SQ_PopupMenu(0, "External tools");

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

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

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

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

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

@ -31,15 +31,15 @@
#include "sq_diroperator.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)
: KFileIconViewItem(tqparent, text, pixmap, fi)
: KFileIconViewItem(parent, text, pixmap, fi)
{}
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;

@ -34,7 +34,7 @@ class TQPoint;
class SQ_FileIconViewItem : public KFileIconViewItem
{
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();
protected:
@ -51,7 +51,7 @@ class SQ_FileIconView : public SQ_FileIconViewBase
TQ_OBJECT
public:
SQ_FileIconView(TQWidget *tqparent = 0, const char *name = "");
SQ_FileIconView(TQWidget *parent = 0, const char *name = "");
~SQ_FileIconView();
/*

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

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

@ -49,7 +49,7 @@
#include "sq_filethumbviewitem.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
m_progressBox = new SQ_ProgressBox(this);

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

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

@ -30,7 +30,7 @@
class SQ_FileThumbViewItem : public KFileIconViewItem
{
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();
bool listed() const;

@ -46,7 +46,7 @@
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;
@ -209,7 +209,7 @@ void SQ_GLView::resetStatusBar()
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);
boxLayout()->setSpacing(0);

@ -36,7 +36,7 @@ class TQLabel;
class SQ_ToolBar : public KToolBar
{
public:
SQ_ToolBar(TQWidget *tqparent);
SQ_ToolBar(TQWidget *parent);
~SQ_ToolBar();
protected:
@ -75,7 +75,7 @@ class SQ_GLView : public TQVBox
TQ_OBJECT
public:
SQ_GLView(TQWidget *tqparent = 0);
SQ_GLView(TQWidget *parent = 0);
~SQ_GLView();
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;

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

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

@ -29,7 +29,7 @@ struct RGBA;
class SQ_ToolButtonPopup : public KToolBarButton
{
public:
SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *tqparent);
SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *parent);
~SQ_ToolButtonPopup();
};
@ -37,7 +37,7 @@ class SQ_ToolButton : public TQToolButton
{
public:
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();
static int fixedWidth();

@ -22,7 +22,7 @@
#include "sq_iconlistbox.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)
{
setHScrollBarMode(TQScrollView::AlwaysOff);

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

@ -27,7 +27,7 @@
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;

@ -32,7 +32,7 @@
class SQ_IconLoader : public TQObject
{
public:
SQ_IconLoader(TQObject *tqparent = 0);
SQ_IconLoader(TQObject *parent = 0);
~SQ_IconLoader();
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(TQObject *tqparent) : TQObject(tqparent), m_errors(0)
SQ_ImageLoader::SQ_ImageLoader(TQObject *parent) : TQObject(parent), m_errors(0)
{
m_instance = this;

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

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

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

@ -35,12 +35,12 @@
#include "sq_kipiinterface.h"
SQ_ActionMenu::SQ_ActionMenu(const TQString &text, TQObject *tqparent, const char *name)
: KActionMenu(text, tqparent, name)
SQ_ActionMenu::SQ_ActionMenu(const TQString &text, TQObject *parent, const char *name)
: KActionMenu(text, parent, name)
{}
SQ_ActionMenu::SQ_ActionMenu(const TQString &text, const TQString &icon, TQObject *tqparent, const char *name)
: KActionMenu(text, icon, tqparent, name)
SQ_ActionMenu::SQ_ActionMenu(const TQString &text, const TQString &icon, TQObject *parent, const char *name)
: KActionMenu(text, icon, parent, name)
{}
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;
@ -147,7 +147,7 @@ void SQ_KIPIManager::slotReplug()
if (!plugin) continue;
plugin->setup(tqparent);
plugin->setup(parent);
KActionPtrList actions = plugin->actions();
KActionPtrList::ConstIterator actionIt = actions.begin(), end = actions.end();

@ -49,8 +49,8 @@ class KPopupMenu;
class SQ_ActionMenu : public KActionMenu
{
public:
SQ_ActionMenu(const TQString &text, TQObject *tqparent = 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, TQObject *parent = 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.
@ -105,7 +105,7 @@ class SQ_KIPIManager : public TQObject
KIPI::PluginLoader *mPluginLoader;
CategoryMap cmenus;
KAction *noPlugin;
TQWidget *tqparent;
TQWidget *parent;
KPopupMenu *p;
bool loaded;
};

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

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

@ -30,7 +30,7 @@
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;

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

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

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

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

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

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

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

@ -24,13 +24,13 @@
#include "sq_iconloader.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);
buttonStop = new TQPushButton(this);
buttonStop->setFlat(true);
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
p = new SQ_Progress(this);

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

@ -27,7 +27,7 @@
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Filename or tqmask:</string>
<string>Filename or mask:</string>
</property>
</widget>
<widget class="TQComboBox" row="0" column="1">
@ -100,7 +100,7 @@
</Q_SLOTS>
<functions>
<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>
<layoutdefaults spacing="6" margin="11"/>
</UI>

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

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

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

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

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

@ -58,7 +58,7 @@
#define SQ_PREDOWNLOAD_SIZE 20
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());
mItems = items;
@ -177,7 +177,7 @@ void SQ_ThumbnailLoadJob::determineNextIcon()
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
// 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_Thumbnail mBrokenThumbnail;
SQ_FileThumbView *tqparent;
SQ_FileThumbView *parent;
};
#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(TQObject *tqparent, Size value)
: TQObject(tqparent), mValue(value), m_extended(false), m_margin(16)
SQ_ThumbnailSize::SQ_ThumbnailSize(TQObject *parent, Size value)
: TQObject(parent), mValue(value), m_extended(false), m_margin(16)
{
m_instance = this;
}
SQ_ThumbnailSize::SQ_ThumbnailSize(TQObject *tqparent, const TQString& str)
: TQObject(tqparent), m_extended(false), m_margin(16)
SQ_ThumbnailSize::SQ_ThumbnailSize(TQObject *parent, const TQString& str)
: TQObject(parent), m_extended(false), m_margin(16)
{
TQString low = str.lower();

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

@ -21,7 +21,7 @@
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;

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

@ -60,7 +60,7 @@
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;
@ -85,7 +85,7 @@ SQ_WidgetStack::SQ_WidgetStack(TQWidget *tqparent, const int id) : TQObject(tqpa
else // path from command line
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);
@ -684,7 +684,7 @@ void SQ_WidgetStack::slotDeselectGroup()
*/
void SQ_WidgetStack::selectDeselectGroup(bool select)
{
TQString tqmask;
TQString mask;
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.pushMask->setText(select ? i18n("Select !") : i18n("Deselect !"));
if(sd.exec(tqmask) == TQDialog::Accepted)
if(sd.exec(mask) == TQDialog::Accepted)
{
if(select)
local->clearSelection();
KFileItemList *sd_files = const_cast<KFileItemList *>(items());
KFileItem *i;
TQRegExp exp(tqmask);
TQRegExp exp(mask);
exp.setWildcard(true);
if(!sd_files)

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

Loading…
Cancel
Save