rename the following methods:

tqparent parent
tqmask mask


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

@ -39,8 +39,8 @@ public:
BookmarkDialog::Mode mMode; BookmarkDialog::Mode mMode;
}; };
BookmarkDialog::BookmarkDialog(TQWidget* tqparent, BookmarkDialog::Mode mode) BookmarkDialog::BookmarkDialog(TQWidget* parent, BookmarkDialog::Mode mode)
: KDialogBase(tqparent,"folderconfig",true,TQString(),Ok|Cancel) : KDialogBase(parent,"folderconfig",true,TQString(),Ok|Cancel)
{ {
d=new BookmarkDialogPrivate; d=new BookmarkDialogPrivate;
d->mContent=new BookmarkDialogBase(this); d->mContent=new BookmarkDialogBase(this);

@ -32,7 +32,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
enum Mode { BOOKMARK_GROUP, BOOKMARK }; enum Mode { BOOKMARK_GROUP, BOOKMARK };
BookmarkDialog(TQWidget* tqparent, Mode mode); BookmarkDialog(TQWidget* parent, Mode mode);
~BookmarkDialog(); ~BookmarkDialog();

@ -27,8 +27,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Gwenview { namespace Gwenview {
BookmarkOwner::BookmarkOwner(TQWidget* tqparent) BookmarkOwner::BookmarkOwner(TQWidget* parent)
: TQObject(tqparent) : TQObject(parent)
{} {}

@ -32,7 +32,7 @@ class BookmarkOwner : public TQObject, public KBookmarkOwner {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
BookmarkOwner(TQWidget* tqparent); BookmarkOwner(TQWidget* parent);
// KBookmarkOwner interface // KBookmarkOwner interface
void openBookmarkURL(const TQString&); void openBookmarkURL(const TQString&);

@ -52,8 +52,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Gwenview { namespace Gwenview {
// URLDropListView // URLDropListView
URLDropListView::URLDropListView(TQWidget* tqparent) URLDropListView::URLDropListView(TQWidget* parent)
: KListView(tqparent) { : KListView(parent) {
setAcceptDrops(true); setAcceptDrops(true);
} }
@ -71,8 +71,8 @@ void URLDropListView::contentsDragMoveEvent(TQDragMoveEvent* event) {
struct BookmarkItem : public KListViewItem { struct BookmarkItem : public KListViewItem {
template <class ItemParent> template <class ItemParent>
BookmarkItem(ItemParent* tqparent, const KBookmark& bookmark) BookmarkItem(ItemParent* parent, const KBookmark& bookmark)
: KListViewItem(tqparent) : KListViewItem(parent)
, mBookmark(bookmark) , mBookmark(bookmark)
{ {
refresh(); refresh();
@ -173,13 +173,13 @@ void URLDropListView::contentsDropEvent(TQDropEvent* event) {
} }
BookmarkViewController::BookmarkViewController(TQWidget* tqparent) BookmarkViewController::BookmarkViewController(TQWidget* parent)
: TQObject(tqparent) : TQObject(parent)
{ {
d=new Private; d=new Private;
d->mManager=0; d->mManager=0;
d->mBox=new TQVBox(tqparent); d->mBox=new TQVBox(parent);
// Init listview // Init listview
d->mListView=new URLDropListView(d->mBox); d->mListView=new URLDropListView(d->mBox);

@ -45,7 +45,7 @@ class URLDropListView : public KListView {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
URLDropListView(TQWidget* tqparent); URLDropListView(TQWidget* parent);
signals: signals:
void urlDropped(TQDropEvent*, const KURL::List&); void urlDropped(TQDropEvent*, const KURL::List&);

@ -106,13 +106,13 @@ T* addConfigPage(KDialogBase* dialog, const TQString& header, const TQString& na
} }
ConfigDialog::ConfigDialog(TQWidget* tqparent, KIPI::PluginLoader* pluginLoader) ConfigDialog::ConfigDialog(TQWidget* parent, KIPI::PluginLoader* pluginLoader)
: KDialogBase( : KDialogBase(
KDialogBase::IconList, KDialogBase::IconList,
i18n("Configure"), i18n("Configure"),
KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Apply, KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Apply,
KDialogBase::Ok, KDialogBase::Ok,
tqparent, parent,
"ConfigDialog", "ConfigDialog",
true, true,
true) true)

@ -53,12 +53,12 @@ struct DirViewController::Private {
}; };
DirViewController::DirViewController(TQWidget* tqparent) DirViewController::DirViewController(TQWidget* parent)
: TQObject(tqparent) : TQObject(parent)
{ {
d=new Private; d=new Private;
d->mTreeView=new TreeView(tqparent); d->mTreeView=new TreeView(parent);
connect(d->mTreeView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), connect(d->mTreeView, TQT_SIGNAL(selectionChanged(TQListViewItem*)),
this, TQT_SLOT(slotTreeViewSelectionChanged(TQListViewItem*)) ); this, TQT_SLOT(slotTreeViewSelectionChanged(TQListViewItem*)) );
@ -130,7 +130,7 @@ void DirViewController::removeDir() {
TQListViewItem* item=d->mTreeView->currentItem(); TQListViewItem* item=d->mTreeView->currentItem();
if (!item) return; if (!item) return;
item=item->tqparent(); item=item->parent();
if (!item) return; if (!item) return;
d->mTreeView->setCurrentItem(item); d->mTreeView->setCurrentItem(item);
} }

@ -41,7 +41,7 @@ class DirViewController : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DirViewController(TQWidget* tqparent); DirViewController(TQWidget* parent);
virtual ~DirViewController(); virtual ~DirViewController();
TQWidget* widget() const; TQWidget* widget() const;

@ -119,8 +119,8 @@ struct KIPIInterfacePrivate {
}; };
KIPIInterface::KIPIInterface( TQWidget* tqparent, FileViewController* fileView) KIPIInterface::KIPIInterface( TQWidget* parent, FileViewController* fileView)
:KIPI::Interface(TQT_TQOBJECT(tqparent), "Gwenview kipi interface") { :KIPI::Interface(TQT_TQOBJECT(parent), "Gwenview kipi interface") {
d=new KIPIInterfacePrivate; d=new KIPIInterfacePrivate;
d->mFileView=fileView; d->mFileView=fileView;

@ -41,7 +41,7 @@ class KIPIInterface :public KIPI::Interface {
TQ_OBJECT TQ_OBJECT
public: public:
KIPIInterface( TQWidget* tqparent, FileViewController*); KIPIInterface( TQWidget* parent, FileViewController*);
virtual ~KIPIInterface(); virtual ~KIPIInterface();
KIPI::ImageCollection currentAlbum(); KIPI::ImageCollection currentAlbum();

@ -139,7 +139,7 @@ const int HISTORY_MAX_COUNT=20;
enum { StackIDBrowse, StackIDView }; enum { StackIDBrowse, StackIDView };
static bool urlIsDirectory(TQWidget* tqparent, const KURL& url) { static bool urlIsDirectory(TQWidget* parent, const KURL& url) {
if( url.filename( false ).isEmpty()) return true; // file:/somewhere/<nothing here> if( url.filename( false ).isEmpty()) return true; // file:/somewhere/<nothing here>
// Do direct stat instead of using KIO if the file is local (faster) // Do direct stat instead of using KIO if the file is local (faster)
if( url.isLocalFile() if( url.isLocalFile()
@ -150,7 +150,7 @@ static bool urlIsDirectory(TQWidget* tqparent, const KURL& url) {
} }
} }
KIO::UDSEntry entry; KIO::UDSEntry entry;
if( KIO::NetAccess::stat( url, entry, tqparent)) { if( KIO::NetAccess::stat( url, entry, parent)) {
KIO::UDSEntry::ConstIterator it; KIO::UDSEntry::ConstIterator it;
for(it=entry.begin();it!=entry.end();++it) { for(it=entry.begin();it!=entry.end();++it) {
if ((*it).m_uds==KIO::UDS_FILE_TYPE) { if ((*it).m_uds==KIO::UDS_FILE_TYPE) {
@ -715,7 +715,7 @@ void MainWindow::slotDirRenamed(const KURL& oldURL, const KURL& newURL) {
KURL url(mFileViewController->dirURL()); KURL url(mFileViewController->dirURL());
if (!oldURL.isParentOf(url) ) { if (!oldURL.isParentOf(url) ) {
LOG(oldURL.prettyURL() << " is not a tqparent of " << url.prettyURL()); LOG(oldURL.prettyURL() << " is not a parent of " << url.prettyURL());
return; return;
} }

@ -32,8 +32,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Gwenview { namespace Gwenview {
// FIXME: Why doesn't MetaEdit inherits from TQTextEdit rather than TQVBox? // FIXME: Why doesn't MetaEdit inherits from TQTextEdit rather than TQVBox?
MetaEdit::MetaEdit(TQWidget *tqparent, Document *gvp, const char *name) MetaEdit::MetaEdit(TQWidget *parent, Document *gvp, const char *name)
: TQVBox(tqparent, name) : TQVBox(parent, name)
, mEmpty(true) , mEmpty(true)
, mDocument(gvp) , mDocument(gvp)
{ {

@ -35,7 +35,7 @@ class MetaEdit : public TQVBox {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MetaEdit(TQWidget *tqparent, Document*, const char *name=""); MetaEdit(TQWidget *parent, Document*, const char *name="");
~MetaEdit(); ~MetaEdit();
protected: protected:
bool eventFilter(TQObject *, TQEvent *); bool eventFilter(TQObject *, TQEvent *);

@ -55,10 +55,10 @@ struct TreeView::Private {
KFileTreeViewItem* mDropTarget; KFileTreeViewItem* mDropTarget;
TQTimer* mAutoOpenTimer; TQTimer* mAutoOpenTimer;
KFileTreeViewItem* findViewItem(KFileTreeViewItem* tqparent,const TQString& text) { KFileTreeViewItem* findViewItem(KFileTreeViewItem* parent,const TQString& text) {
TQListViewItem* item; TQListViewItem* item;
for (item=tqparent->firstChild();item;item=item->nextSibling()) { for (item=parent->firstChild();item;item=item->nextSibling()) {
if (item->text(0)==text) { if (item->text(0)==text) {
return static_cast<KFileTreeViewItem*>(item); return static_cast<KFileTreeViewItem*>(item);
} }
@ -114,8 +114,8 @@ struct TreeView::Private {
}; };
TreeView::TreeView(TQWidget* tqparent) TreeView::TreeView(TQWidget* parent)
: KFileTreeView(tqparent) { : KFileTreeView(parent) {
d=new Private; d=new Private;
d->mView=this; d->mView=this;
d->mBranch=0; d->mBranch=0;
@ -180,7 +180,7 @@ void TreeView::slotTreeViewPopulateFinished(KFileTreeViewItem* item) {
return; return;
} }
// This URL is not a tqparent of a wanted URL, get out // This URL is not a parent of a wanted URL, get out
if (!url.isParentOf(m_nextUrlToSelect)) return; if (!url.isParentOf(m_nextUrlToSelect)) return;
// Find the next child item and open it // Find the next child item and open it

@ -34,7 +34,7 @@ class TreeView : public KFileTreeView {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TreeView(TQWidget* tqparent); TreeView(TQWidget* parent);
~TreeView(); ~TreeView();
public slots: public slots:

@ -36,8 +36,8 @@ namespace Gwenview {
*/ */
class TruncatedTextLabel : public TQLabel { class TruncatedTextLabel : public TQLabel {
public: public:
TruncatedTextLabel(TQWidget* tqparent) TruncatedTextLabel(TQWidget* parent)
: TQLabel(tqparent) {} : TQLabel(parent) {}
TQSize tqminimumSizeHint() const { TQSize tqminimumSizeHint() const {
TQSize size=TQLabel::tqminimumSizeHint(); TQSize size=TQLabel::tqminimumSizeHint();

@ -38,8 +38,8 @@ struct VTabWidget::Private {
}; };
VTabWidget::VTabWidget(TQWidget* tqparent) VTabWidget::VTabWidget(TQWidget* parent)
: TQWidget(tqparent) : TQWidget(parent)
{ {
d=new Private; d=new Private;
d->mEmpty=true; d->mEmpty=true;

@ -34,7 +34,7 @@ class VTabWidget : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
VTabWidget(TQWidget* tqparent); VTabWidget(TQWidget* parent);
virtual ~VTabWidget(); virtual ~VTabWidget();
void addTab(TQWidget*, const TQPixmap&, const TQString& label); void addTab(TQWidget*, const TQPixmap&, const TQString& label);

@ -26,8 +26,8 @@
namespace Gwenview { namespace Gwenview {
ClickLineEdit::ClickLineEdit(TQWidget *tqparent, const char* name ) : ClickLineEdit::ClickLineEdit(TQWidget *parent, const char* name ) :
KLineEdit( tqparent, name ) KLineEdit( parent, name )
{ {
mDrawClickMsg = true; mDrawClickMsg = true;
} }

@ -38,7 +38,7 @@ class ClickLineEdit : public KLineEdit
TQ_OBJECT TQ_OBJECT
TQ_PROPERTY( TQString clickMessage READ clickMessage WRITE setClickMessage ) TQ_PROPERTY( TQString clickMessage READ clickMessage WRITE setClickMessage )
public: public:
ClickLineEdit(TQWidget *tqparent, const char* name = 0 ); ClickLineEdit(TQWidget *parent, const char* name = 0 );
void setClickMessage( const TQString &msg ); void setClickMessage( const TQString &msg );
TQString clickMessage() const { return mClickMessage; } TQString clickMessage() const { return mClickMessage; }

@ -39,8 +39,8 @@
namespace Gwenview { namespace Gwenview {
DeleteDialog::DeleteDialog(TQWidget *tqparent, const char *name) : DeleteDialog::DeleteDialog(TQWidget *parent, const char *name) :
KDialogBase(Swallow, WStyle_DialogBorder, tqparent, name, KDialogBase(Swallow, WStyle_DialogBorder, parent, name,
true /* modal */, i18n("About to delete selected files"), true /* modal */, i18n("About to delete selected files"),
Ok | Cancel, Cancel /* Default */, true /* separator */), Ok | Cancel, Cancel /* Default */, true /* separator */),
m_trashGuiItem(i18n("&Send to Trash"), "trashcan_full") m_trashGuiItem(i18n("&Send to Trash"), "trashcan_full")

@ -31,7 +31,7 @@ class DeleteDialog : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
DeleteDialog(TQWidget *tqparent, const char *name = "delete_dialog"); DeleteDialog(TQWidget *parent, const char *name = "delete_dialog");
void setURLList(const KURL::List &files); void setURLList(const KURL::List &files);
bool shouldDelete() const; bool shouldDelete() const;

@ -73,7 +73,7 @@ const char* CONFIG_SAVE_AUTOMATICALLY="save automatically";
/** /**
* Returns a widget suitable to use as a dialog tqparent * Returns a widget suitable to use as a dialog parent
*/ */
static TQWidget* dialogParentWidget() { static TQWidget* dialogParentWidget() {
return KApplication::kApplication()->mainWidget(); return KApplication::kApplication()->mainWidget();
@ -102,8 +102,8 @@ public:
// Document // Document
// //
//------------------------------------------------------------------- //-------------------------------------------------------------------
Document::Document(TQObject* tqparent) Document::Document(TQObject* parent)
: TQObject(tqparent) { : TQObject(parent) {
d=new DocumentPrivate; d=new DocumentPrivate;
d->mModified=false; d->mModified=false;
d->mImpl=new DocumentEmptyImpl(this); d->mImpl=new DocumentEmptyImpl(this);

@ -130,11 +130,11 @@ TQString DocumentLoadedImpl::save(const KURL& _url, const TQCString& format) con
} }
} else { } else {
TQFileInfo tqparent=TQFileInfo(info.dirPath()); TQFileInfo parent=TQFileInfo(info.dirPath());
if (!tqparent.isWritable()) { if (!parent.isWritable()) {
return return
i18n("The %1 folder is read-only.") i18n("The %1 folder is read-only.")
.tqarg(tqparent.filePath()); .tqarg(parent.filePath());
} }
} }
} }

@ -31,9 +31,9 @@ Copyright 2000-2004 Aur
namespace Gwenview { namespace Gwenview {
ExternalToolAction::ExternalToolAction( ExternalToolAction::ExternalToolAction(
TQObject* tqparent, const KService* service, TQObject* parent, const KService* service,
const KURL::List& urls) const KURL::List& urls)
: KAction(tqparent) : KAction(parent)
, mService(service) , mService(service)
, mURLs(urls) , mURLs(urls)
{ {

@ -36,7 +36,7 @@ class ExternalToolAction : public KAction {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ExternalToolAction(TQObject* tqparent, const KService*, const KURL::List&); ExternalToolAction(TQObject* parent, const KService*, const KURL::List&);
private slots: private slots:
void openExternalTool(); void openExternalTool();

@ -36,10 +36,10 @@ Copyright 2000-2004 Aur
namespace Gwenview { namespace Gwenview {
ExternalToolContext::ExternalToolContext( ExternalToolContext::ExternalToolContext(
TQObject* tqparent, TQObject* parent,
std::list<KService*> services, std::list<KService*> services,
KURL::List urls) KURL::List urls)
: TQObject(tqparent) : TQObject(parent)
, mServices(services) , mServices(services)
, mURLs(urls) , mURLs(urls)
{} {}

@ -41,7 +41,7 @@ class LIBGWENVIEW_EXPORT ExternalToolContext : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ExternalToolContext(TQObject* tqparent, ExternalToolContext(TQObject* parent,
std::list<KService*> services, std::list<KService*> services,
KURL::List urls); KURL::List urls);
TQPopupMenu* popupMenu(); TQPopupMenu* popupMenu();

@ -51,8 +51,8 @@ enum { ID_ALL_IMAGES=0, ID_ALL_FILES, ID_CUSTOM };
class ToolListViewItem : public KListViewItem { class ToolListViewItem : public KListViewItem {
public: public:
ToolListViewItem(KListView* tqparent, const TQString& label) ToolListViewItem(KListView* parent, const TQString& label)
: KListViewItem(tqparent, label), mDesktopFile(0L) {} : KListViewItem(parent, label), mDesktopFile(0L) {}
void setDesktopFile(KDesktopFile* df) { void setDesktopFile(KDesktopFile* df) {
mDesktopFile=df; mDesktopFile=df;
@ -244,8 +244,8 @@ struct ExternalToolDialogPrivate {
class ToolListViewFilterObject : public TQObject { class ToolListViewFilterObject : public TQObject {
ExternalToolDialogPrivate* d; ExternalToolDialogPrivate* d;
public: public:
ToolListViewFilterObject(TQObject* tqparent, ExternalToolDialogPrivate* _d) ToolListViewFilterObject(TQObject* parent, ExternalToolDialogPrivate* _d)
: TQObject(tqparent), d(_d) {} : TQObject(parent), d(_d) {}
bool eventFilter(TQObject*, TQEvent* event) { bool eventFilter(TQObject*, TQEvent* event) {
if (event->type()!=TQEvent::MouseButtonPress) return false; if (event->type()!=TQEvent::MouseButtonPress) return false;
@ -254,9 +254,9 @@ public:
}; };
ExternalToolDialog::ExternalToolDialog(TQWidget* tqparent) ExternalToolDialog::ExternalToolDialog(TQWidget* parent)
: KDialogBase( : KDialogBase(
tqparent,0, false, TQString(), KDialogBase::Ok|KDialogBase::Apply|KDialogBase::Cancel, parent,0, false, TQString(), KDialogBase::Ok|KDialogBase::Apply|KDialogBase::Cancel,
KDialogBase::Ok, true) KDialogBase::Ok, true)
{ {
setWFlags(getWFlags() | TQt::WDestructiveClose); setWFlags(getWFlags() | TQt::WDestructiveClose);

@ -35,7 +35,7 @@ class LIBGWENVIEW_EXPORT ExternalToolDialog : public KDialogBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ExternalToolDialog(TQWidget* tqparent); ExternalToolDialog(TQWidget* parent);
~ExternalToolDialog(); ~ExternalToolDialog();
protected slots: protected slots:

@ -95,7 +95,7 @@ struct ExternalToolManagerPrivate {
} }
ExternalToolContext* createContextInternal( ExternalToolContext* createContextInternal(
TQObject* tqparent, const KURL::List& urls, const TQStringList& mimeTypes) TQObject* parent, const KURL::List& urls, const TQStringList& mimeTypes)
{ {
bool onlyOneURL=urls.size()==1; bool onlyOneURL=urls.size()==1;
@ -119,7 +119,7 @@ struct ExternalToolManagerPrivate {
} }
selectionServices.sort(compareKServicePtrByName); selectionServices.sort(compareKServicePtrByName);
return new ExternalToolContext(tqparent, selectionServices, urls); return new ExternalToolContext(parent, selectionServices, urls);
} }
}; };
@ -257,7 +257,7 @@ KDesktopFile* ExternalToolManager::createUserDesktopFile(const TQString& name) {
ExternalToolContext* ExternalToolManager::createContext( ExternalToolContext* ExternalToolManager::createContext(
TQObject* tqparent, const KFileItemList* items) TQObject* parent, const KFileItemList* items)
{ {
KURL::List urls; KURL::List urls;
TQStringList mimeTypes; TQStringList mimeTypes;
@ -273,12 +273,12 @@ ExternalToolContext* ExternalToolManager::createContext(
} }
} }
return d->createContextInternal(tqparent, urls, mimeTypes); return d->createContextInternal(parent, urls, mimeTypes);
} }
ExternalToolContext* ExternalToolManager::createContext( ExternalToolContext* ExternalToolManager::createContext(
TQObject* tqparent, const KURL& url) TQObject* parent, const KURL& url)
{ {
KURL::List urls; KURL::List urls;
TQStringList mimeTypes; TQStringList mimeTypes;
@ -287,7 +287,7 @@ ExternalToolContext* ExternalToolManager::createContext(
TQString mimeType=KMimeType::findByURL(url, 0, url.isLocalFile(), true)->name(); TQString mimeType=KMimeType::findByURL(url, 0, url.isLocalFile(), true)->name();
mimeTypes.append(mimeType); mimeTypes.append(mimeType);
return d->createContextInternal(tqparent, urls, mimeTypes); return d->createContextInternal(parent, urls, mimeTypes);
} }

@ -42,8 +42,8 @@ class LIBGWENVIEW_EXPORT ExternalToolManager {
public: public:
~ExternalToolManager(); ~ExternalToolManager();
ExternalToolContext* createContext(TQObject* tqparent, const KFileItemList*); ExternalToolContext* createContext(TQObject* parent, const KFileItemList*);
ExternalToolContext* createContext(TQObject* tqparent, const KURL&); ExternalToolContext* createContext(TQObject* parent, const KURL&);
static ExternalToolManager* instance(); static ExternalToolManager* instance();
TQDict<KDesktopFile>& desktopFiles() const; TQDict<KDesktopFile>& desktopFiles() const;

@ -73,8 +73,8 @@ static TQPixmap createShownItemPixmap(int size, const TQColor& color) {
} }
FileDetailView::FileDetailView(TQWidget *tqparent, const char *name) FileDetailView::FileDetailView(TQWidget *parent, const char *name)
: KListView(tqparent, name), FileViewBase() : KListView(parent, name), FileViewBase()
{ {
mSortingCol = COL_NAME; mSortingCol = COL_NAME;
mBlockSortingSignal = false; mBlockSortingSignal = false;

@ -49,7 +49,7 @@ class FileDetailView : public KListView, public FileViewBase
friend class FileDetailViewItem; friend class FileDetailViewItem;
public: public:
FileDetailView(TQWidget* tqparent, const char* name); FileDetailView(TQWidget* parent, const char* name);
virtual ~FileDetailView(); virtual ~FileDetailView();
virtual TQWidget* widget() { return this; } virtual TQWidget* widget() { return this; }

@ -39,22 +39,22 @@ namespace Gwenview {
class FileDetailViewItem : public KListViewItem class FileDetailViewItem : public KListViewItem
{ {
public: public:
FileDetailViewItem( TQListView* tqparent, const TQString &text, FileDetailViewItem( TQListView* parent, const TQString &text,
const TQPixmap &icon, KFileItem* fi ) const TQPixmap &icon, KFileItem* fi )
: KListViewItem( tqparent, text ), inf( fi ) { : KListViewItem( parent, text ), inf( fi ) {
setPixmap( 0, icon ); setPixmap( 0, icon );
setText( 0, text ); setText( 0, text );
} }
FileDetailViewItem( TQListView* tqparent, KFileItem* fi ) FileDetailViewItem( TQListView* parent, KFileItem* fi )
: KListViewItem( tqparent ), inf( fi ) { : KListViewItem( parent ), inf( fi ) {
init(); init();
} }
FileDetailViewItem( TQListView* tqparent, const TQString &text, FileDetailViewItem( TQListView* parent, const TQString &text,
const TQPixmap &icon, KFileItem* fi, const TQPixmap &icon, KFileItem* fi,
TQListViewItem* after) TQListViewItem* after)
: KListViewItem( tqparent, after ), inf( fi ) { : KListViewItem( parent, after ), inf( fi ) {
setPixmap( 0, icon ); setPixmap( 0, icon );
setText( 0, text ); setText( 0, text );
} }

@ -40,51 +40,51 @@ namespace Gwenview {
namespace FileOperation { namespace FileOperation {
void copyTo(const KURL::List& srcURL,TQWidget* tqparent) { void copyTo(const KURL::List& srcURL,TQWidget* parent) {
FileOpObject* op=new FileOpCopyToObject(srcURL,tqparent); FileOpObject* op=new FileOpCopyToObject(srcURL,parent);
(*op)(); (*op)();
} }
void linkTo(const KURL::List& srcURL,TQWidget* tqparent) { void linkTo(const KURL::List& srcURL,TQWidget* parent) {
FileOpObject* op=new FileOpLinkToObject(srcURL,tqparent); FileOpObject* op=new FileOpLinkToObject(srcURL,parent);
(*op)(); (*op)();
} }
void moveTo(const KURL::List& srcURL,TQWidget* tqparent,TQObject* receiver,const char* slot) { void moveTo(const KURL::List& srcURL,TQWidget* parent,TQObject* receiver,const char* slot) {
FileOpObject* op=new FileOpMoveToObject(srcURL,tqparent); FileOpObject* op=new FileOpMoveToObject(srcURL,parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot);
(*op)(); (*op)();
} }
void makeDir(const KURL& parentURL, TQWidget* tqparent, TQObject* receiver, const char* slot) { void makeDir(const KURL& parentURL, TQWidget* parent, TQObject* receiver, const char* slot) {
FileOpObject* op=new FileOpMakeDirObject(parentURL, tqparent); FileOpObject* op=new FileOpMakeDirObject(parentURL, parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot);
(*op)(); (*op)();
} }
void del(const KURL::List& url,TQWidget* tqparent,TQObject* receiver,const char* slot) { void del(const KURL::List& url,TQWidget* parent,TQObject* receiver,const char* slot) {
FileOpObject* op = new FileOpDelObject(url,tqparent); FileOpObject* op = new FileOpDelObject(url,parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot);
(*op)(); (*op)();
} }
void trash(const KURL::List& url, TQWidget* tqparent, TQObject* receiver, const char* slot) { void trash(const KURL::List& url, TQWidget* parent, TQObject* receiver, const char* slot) {
FileOpObject* op = new FileOpTrashObject(url,tqparent); FileOpObject* op = new FileOpTrashObject(url,parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot);
(*op)(); (*op)();
} }
void realDelete(const KURL::List& url, TQWidget* tqparent, TQObject* receiver, const char* slot) { void realDelete(const KURL::List& url, TQWidget* parent, TQObject* receiver, const char* slot) {
FileOpObject* op = new FileOpRealDeleteObject(url,tqparent); FileOpObject* op = new FileOpRealDeleteObject(url,parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot);
(*op)(); (*op)();
} }
void rename(const KURL& url,TQWidget* tqparent,TQObject* receiver,const char* slot) { void rename(const KURL& url,TQWidget* parent,TQObject* receiver,const char* slot) {
FileOpObject* op=new FileOpRenameObject(url,tqparent); FileOpObject* op=new FileOpRenameObject(url,parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(renamed(const TQString&)),receiver,slot); if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(renamed(const TQString&)),receiver,slot);
(*op)(); (*op)();
} }
@ -101,8 +101,8 @@ void fillDropURLMenu(TQPopupMenu* menu, const KURL::List& urls, const KURL& targ
} }
void openDropURLMenu(TQWidget* tqparent, const KURL::List& urls, const KURL& target, bool* wasMoved) { void openDropURLMenu(TQWidget* parent, const KURL::List& urls, const KURL& target, bool* wasMoved) {
TQPopupMenu menu(tqparent); TQPopupMenu menu(parent);
if (wasMoved) *wasMoved=false; if (wasMoved) *wasMoved=false;
fillDropURLMenu(&menu, urls, target, wasMoved); fillDropURLMenu(&menu, urls, target, wasMoved);

@ -39,14 +39,14 @@ namespace Gwenview {
*/ */
namespace FileOperation { namespace FileOperation {
LIBGWENVIEW_EXPORT void copyTo(const KURL::List&,TQWidget* tqparent=0L); LIBGWENVIEW_EXPORT void copyTo(const KURL::List&,TQWidget* parent=0L);
LIBGWENVIEW_EXPORT void moveTo(const KURL::List&,TQWidget* tqparent,TQObject* receiver=0L,const char* slot=0L); LIBGWENVIEW_EXPORT void moveTo(const KURL::List&,TQWidget* parent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void linkTo(const KURL::List& srcURL,TQWidget* tqparent); LIBGWENVIEW_EXPORT void linkTo(const KURL::List& srcURL,TQWidget* parent);
LIBGWENVIEW_EXPORT void makeDir(const KURL& parentURL, TQWidget* tqparent, TQObject* receiver=0L, const char* slot=0L); LIBGWENVIEW_EXPORT void makeDir(const KURL& parentURL, TQWidget* parent, TQObject* receiver=0L, const char* slot=0L);
LIBGWENVIEW_EXPORT void del(const KURL::List&,TQWidget* tqparent,TQObject* receiver=0L,const char* slot=0L); LIBGWENVIEW_EXPORT void del(const KURL::List&,TQWidget* parent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void trash(const KURL::List&,TQWidget* tqparent,TQObject* receiver=0L,const char* slot=0L); LIBGWENVIEW_EXPORT void trash(const KURL::List&,TQWidget* parent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void realDelete(const KURL::List&,TQWidget* tqparent,TQObject* receiver=0L,const char* slot=0L); LIBGWENVIEW_EXPORT void realDelete(const KURL::List&,TQWidget* parent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void rename(const KURL&,TQWidget* tqparent,TQObject* receiver=0L,const char* slot=0L); LIBGWENVIEW_EXPORT void rename(const KURL&,TQWidget* parent,TQObject* receiver=0L,const char* slot=0L);
/** /**
@ -56,8 +56,8 @@ class DropMenuContext : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DropMenuContext(TQObject* tqparent, const KURL::List& src, const KURL& dst, bool* wasMoved) DropMenuContext(TQObject* parent, const KURL::List& src, const KURL& dst, bool* wasMoved)
: TQObject(tqparent) : TQObject(parent)
, mSrc(src) , mSrc(src)
, mDst(dst) , mDst(dst)
, mWasMoved(wasMoved) , mWasMoved(wasMoved)
@ -87,7 +87,7 @@ private:
LIBGWENVIEW_EXPORT void fillDropURLMenu(TQPopupMenu*, const KURL::List&, const KURL& target, bool* wasMoved=0L); LIBGWENVIEW_EXPORT void fillDropURLMenu(TQPopupMenu*, const KURL::List&, const KURL& target, bool* wasMoved=0L);
LIBGWENVIEW_EXPORT void openDropURLMenu(TQWidget* tqparent, const KURL::List&, const KURL& target, bool* wasMoved=0L); LIBGWENVIEW_EXPORT void openDropURLMenu(TQWidget* parent, const KURL::List&, const KURL& target, bool* wasMoved=0L);
} // namespace } // namespace

@ -51,8 +51,8 @@ namespace Gwenview {
*/ */
class DirSelectDialog : public KFileDialog { class DirSelectDialog : public KFileDialog {
public: public:
DirSelectDialog(const TQString& startDir, TQWidget* tqparent) DirSelectDialog(const TQString& startDir, TQWidget* parent)
: KFileDialog(startDir, TQString(), tqparent, "dirselectdialog", true) { : KFileDialog(startDir, TQString(), parent, "dirselectdialog", true) {
locationEdit->setEnabled(false); locationEdit->setEnabled(false);
filterWidget->setEnabled(false); filterWidget->setEnabled(false);
setMode(KFile::Directory | KFile::ExistingOnly); setMode(KFile::Directory | KFile::ExistingOnly);
@ -64,15 +64,15 @@ public:
//-FileOpObject-------------------------------------------------------------------- //-FileOpObject--------------------------------------------------------------------
FileOpObject::FileOpObject(const KURL& url,TQWidget* tqparent) FileOpObject::FileOpObject(const KURL& url,TQWidget* parent)
: mParent(tqparent) : mParent(parent)
{ {
mURLList.append(url); mURLList.append(url);
} }
FileOpObject::FileOpObject(const KURL::List& list,TQWidget* tqparent) FileOpObject::FileOpObject(const KURL::List& list,TQWidget* parent)
: mParent(tqparent), mURLList(list) : mParent(parent), mURLList(list)
{} {}

@ -46,8 +46,8 @@ class FileOpObject : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FileOpObject(const KURL&,TQWidget* tqparent=0L); FileOpObject(const KURL&,TQWidget* parent=0L);
FileOpObject(const KURL::List&,TQWidget* tqparent=0L); FileOpObject(const KURL::List&,TQWidget* parent=0L);
virtual void operator()()=0; virtual void operator()()=0;
signals: signals:
@ -68,8 +68,8 @@ class FileOpCopyToObject : public FileOpObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FileOpCopyToObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {} FileOpCopyToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpCopyToObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {} FileOpCopyToObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()(); void operator()();
}; };
@ -77,8 +77,8 @@ class FileOpLinkToObject : public FileOpObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FileOpLinkToObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {} FileOpLinkToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpLinkToObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {} FileOpLinkToObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()(); void operator()();
}; };
@ -86,8 +86,8 @@ class FileOpMoveToObject : public FileOpObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FileOpMoveToObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {} FileOpMoveToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpMoveToObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {} FileOpMoveToObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()(); void operator()();
}; };
@ -95,7 +95,7 @@ class FileOpMakeDirObject : public FileOpObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FileOpMakeDirObject(const KURL& url, TQWidget* tqparent=0L) : FileOpObject(url, tqparent) {} FileOpMakeDirObject(const KURL& url, TQWidget* parent=0L) : FileOpObject(url, parent) {}
void operator()(); void operator()();
}; };
@ -103,8 +103,8 @@ class FileOpDelObject : public FileOpObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FileOpDelObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {} FileOpDelObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpDelObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {} FileOpDelObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()(); void operator()();
}; };
@ -113,8 +113,8 @@ class FileOpTrashObject : public FileOpObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FileOpTrashObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {} FileOpTrashObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpTrashObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {} FileOpTrashObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()(); void operator()();
}; };
@ -123,8 +123,8 @@ class FileOpRealDeleteObject : public FileOpObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FileOpRealDeleteObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {} FileOpRealDeleteObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpRealDeleteObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {} FileOpRealDeleteObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()(); void operator()();
}; };
@ -133,7 +133,7 @@ class FileOpRenameObject : public FileOpObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FileOpRenameObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {} FileOpRenameObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
void operator()(); void operator()();
signals: signals:

@ -110,7 +110,7 @@ public:
} }
void updatePosition() { void updatePosition() {
FileThumbnailView* view=static_cast<FileThumbnailView*>(TQT_TQWIDGET(tqparent())); FileThumbnailView* view=static_cast<FileThumbnailView*>(TQT_TQWIDGET(parent()));
TQSize tmp=view->clipper()->size() - size(); TQSize tmp=view->clipper()->size() - size();
move(tmp.width() - 2, tmp.height() - 2); move(tmp.width() - 2, tmp.height() - 2);
} }
@ -159,8 +159,8 @@ static FileThumbnailViewItem* viewItem(const FileThumbnailView* view, const KFil
} }
FileThumbnailView::FileThumbnailView(TQWidget* tqparent) FileThumbnailView::FileThumbnailView(TQWidget* parent)
: KIconView(tqparent), FileViewBase() : KIconView(parent), FileViewBase()
{ {
d=new Private; d=new Private;
d->mUpdateThumbnailsOnNextShow=false; d->mUpdateThumbnailsOnNextShow=false;

@ -52,7 +52,7 @@ Q_OBJECT
public: public:
enum ItemDetail { FILENAME=1, FILESIZE=2, FILEDATE=4, IMAGESIZE=8 }; enum ItemDetail { FILENAME=1, FILESIZE=2, FILEDATE=4, IMAGESIZE=8 };
FileThumbnailView(TQWidget* tqparent); FileThumbnailView(TQWidget* parent);
~FileThumbnailView(); ~FileThumbnailView();
TQWidget* widget() { return this; } TQWidget* widget() { return this; }

@ -42,7 +42,7 @@ public:
class WrappedLine; class WrappedLine;
enum { PADDING=4 }; enum { PADDING=4 };
FileThumbnailViewItem(TQIconView* tqparent,const TQString& text,const TQPixmap& icon, KFileItem* fileItem); FileThumbnailViewItem(TQIconView* parent,const TQString& text,const TQPixmap& icon, KFileItem* fileItem);
~FileThumbnailViewItem(); ~FileThumbnailViewItem();
KFileItem* fileItem() const { return mFileItem; } KFileItem* fileItem() const { return mFileItem; }

@ -252,8 +252,8 @@ public:
// FileViewController // FileViewController
// //
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
FileViewController::FileViewController(TQWidget* tqparent,KActionCollection* actionCollection) FileViewController::FileViewController(TQWidget* parent,KActionCollection* actionCollection)
: TQWidget(tqparent) : TQWidget(parent)
, mMode(FILE_LIST) , mMode(FILE_LIST)
, mPrefetch( NULL ) , mPrefetch( NULL )
, mChangeDirtqStatus(CHANGE_DIR_STATUS_NONE) , mChangeDirtqStatus(CHANGE_DIR_STATUS_NONE)

@ -62,7 +62,7 @@ public:
enum Mode { FILE_LIST, THUMBNAIL}; enum Mode { FILE_LIST, THUMBNAIL};
enum FilterMode { ALL, IMAGES_ONLY, VIDEOS_ONLY }; enum FilterMode { ALL, IMAGES_ONLY, VIDEOS_ONLY };
FileViewController(TQWidget* tqparent,KActionCollection*); FileViewController(TQWidget* parent,KActionCollection*);
~FileViewController(); ~FileViewController();
// Properties // Properties

@ -75,8 +75,8 @@ struct FullScreenBar::Private {
}; };
FullScreenBar::FullScreenBar(TQWidget* tqparent) FullScreenBar::FullScreenBar(TQWidget* parent)
: KToolBar(tqparent, "FullScreenBar") { : KToolBar(parent, "FullScreenBar") {
d=new Private; d=new Private;
d->mState=OUT; d->mState=OUT;
d->mFirstShow=true; d->mFirstShow=true;
@ -105,15 +105,15 @@ FullScreenBar::~FullScreenBar() {
void FullScreenBar::resizeEvent(TQResizeEvent* event) { void FullScreenBar::resizeEvent(TQResizeEvent* event) {
KToolBar::resizeEvent(event); KToolBar::resizeEvent(event);
// Create a tqmask // Create a mask
TQPainter painter; TQPainter painter;
TQBitmap tqmask(size(), true); TQBitmap mask(size(), true);
painter.begin(&tqmask); painter.begin(&mask);
painter.setBrush(TQt::white); painter.setBrush(TQt::white);
fillMask(painter, rect()); fillMask(painter, rect());
painter.end(); painter.end();
setMask(tqmask); setMask(mask);
} }

@ -34,7 +34,7 @@ class FullScreenBar : public KToolBar {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FullScreenBar(TQWidget* tqparent); FullScreenBar(TQWidget* parent);
~FullScreenBar(); ~FullScreenBar();
void slideIn(); void slideIn();

@ -44,8 +44,8 @@ static int findFormatInFilterList(const TQStringList& filters, const TQString& f
} }
ImageSaveDialog::ImageSaveDialog(KURL& url, const TQCString& imageFormat, TQWidget* tqparent) ImageSaveDialog::ImageSaveDialog(KURL& url, const TQCString& imageFormat, TQWidget* parent)
: KFileDialog(":ImageSaveDialog",TQString(),tqparent,"imagesavedialog",true) : KFileDialog(":ImageSaveDialog",TQString(),parent,"imagesavedialog",true)
, mURL(url) , mURL(url)
, mImageFormat(imageFormat) , mImageFormat(imageFormat)
{ {

@ -34,7 +34,7 @@ class ImageSaveDialog : public KFileDialog {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ImageSaveDialog(KURL& url,const TQCString& imageFormat,TQWidget* tqparent); ImageSaveDialog(KURL& url,const TQCString& imageFormat,TQWidget* parent);
TQCString imageFormat() const { return mImageFormat; } TQCString imageFormat() const { return mImageFormat; }
protected slots: protected slots:

@ -272,15 +272,15 @@ inline bool doDelayedSmoothing() {
class ImageView::EventFilter : public TQObject { class ImageView::EventFilter : public TQObject {
public: public:
EventFilter(ImageView* tqparent) EventFilter(ImageView* parent)
: TQObject(tqparent) {} : TQObject(parent) {}
bool eventFilter(TQObject*, TQEvent* event) { bool eventFilter(TQObject*, TQEvent* event) {
switch (event->type()) { switch (event->type()) {
case TQEvent::KeyPress: case TQEvent::KeyPress:
case TQEvent::KeyRelease: case TQEvent::KeyRelease:
case TQEvent::AccelOverride: case TQEvent::AccelOverride:
return static_cast< ImageView* >( TQT_TQWIDGET(tqparent())) return static_cast< ImageView* >( TQT_TQWIDGET(parent()))
->viewportKeyEvent(TQT_TQKEYEVENT(event)); ->viewportKeyEvent(TQT_TQKEYEVENT(event));
default: default:
break; break;
@ -291,8 +291,8 @@ public:
ImageView::ImageView(TQWidget* tqparent,Document* document, KActionCollection* actionCollection) ImageView::ImageView(TQWidget* parent,Document* document, KActionCollection* actionCollection)
: TQScrollView(tqparent,0L,WResizeNoErase|WRepaintNoErase|WPaintClever) : TQScrollView(parent,0L,WResizeNoErase|WRepaintNoErase|WPaintClever)
{ {
d=new Private; d=new Private;
d->mDocument=document; d->mDocument=document;

@ -67,7 +67,7 @@ public:
enum ZoomMode { ZOOM_FIT, ZOOM_FIT_WIDTH, ZOOM_FIT_HEIGHT, ZOOM_FREE }; enum ZoomMode { ZOOM_FIT, ZOOM_FIT_WIDTH, ZOOM_FIT_HEIGHT, ZOOM_FREE };
typedef TQMap<ToolID,ToolBase*> Tools; typedef TQMap<ToolID,ToolBase*> Tools;
ImageView(TQWidget* tqparent,Document*,KActionCollection*); ImageView(TQWidget* parent,Document*,KActionCollection*);
~ImageView(); ~ImageView();
// Properties // Properties

@ -64,11 +64,11 @@ namespace Gwenview {
*/ */
class XMLGUIBuilder : public KXMLGUIBuilder { class XMLGUIBuilder : public KXMLGUIBuilder {
public: public:
XMLGUIBuilder(TQWidget* tqparent) : KXMLGUIBuilder(tqparent) {} XMLGUIBuilder(TQWidget* parent) : KXMLGUIBuilder(parent) {}
virtual TQWidget* createContainer(TQWidget *tqparent, int index, const TQDomElement &element, int &id) { virtual TQWidget* createContainer(TQWidget *parent, int index, const TQDomElement &element, int &id) {
if (element.tagName().lower() == "toolbar") { if (element.tagName().lower() == "toolbar") {
return KXMLGUIBuilder::createContainer(tqparent, index, element, id); return KXMLGUIBuilder::createContainer(parent, index, element, id);
} else { } else {
return 0; return 0;
} }
@ -264,8 +264,8 @@ struct ImageViewController::Private {
//------------------------------------------------------------------------ //------------------------------------------------------------------------
ImageViewController::ImageViewController(TQWidget* tqparent, Document* document, KActionCollection* actionCollection) ImageViewController::ImageViewController(TQWidget* parent, Document* document, KActionCollection* actionCollection)
: TQObject(tqparent) { : TQObject(parent) {
d=new Private; d=new Private;
d->mImageViewController=this; d->mImageViewController=this;
d->mDocument=document; d->mDocument=document;
@ -273,7 +273,7 @@ ImageViewController::ImageViewController(TQWidget* tqparent, Document* document,
d->mAutoHideTimer=new TQTimer(this); d->mAutoHideTimer=new TQTimer(this);
d->mCursorHidden=false; d->mCursorHidden=false;
d->mContainer=new TQWidget(tqparent); d->mContainer=new TQWidget(parent);
d->mContainer->setMinimumWidth(1); // Make sure we can resize the toolbar smaller than its minimum size d->mContainer->setMinimumWidth(1); // Make sure we can resize the toolbar smaller than its minimum size
TQVBoxLayout* tqlayout=new TQVBoxLayout(d->mContainer); TQVBoxLayout* tqlayout=new TQVBoxLayout(d->mContainer);
d->mToolBar=new KToolBar(d->mContainer, "", true); d->mToolBar=new KToolBar(d->mContainer, "", true);
@ -425,7 +425,7 @@ bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) {
// have to check we are not dealing with another object. // have to check we are not dealing with another object.
bool isAChildOfStack=false; bool isAChildOfStack=false;
TQObject* parentObject; TQObject* parentObject;
for (parentObject=object->tqparent(); parentObject; parentObject=parentObject->tqparent()) { for (parentObject=object->parent(); parentObject; parentObject=parentObject->parent()) {
if (TQT_BASE_OBJECT(parentObject)==TQT_BASE_OBJECT(d->mStack)) { if (TQT_BASE_OBJECT(parentObject)==TQT_BASE_OBJECT(d->mStack)) {
isAChildOfStack=true; isAChildOfStack=true;
break; break;

@ -46,7 +46,7 @@ class LIBGWENVIEW_EXPORT ImageViewController : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ImageViewController(TQWidget* tqparent, Document*, KActionCollection*); ImageViewController(TQWidget* parent, Document*, KActionCollection*);
~ImageViewController(); ~ImageViewController();
TQWidget* widget() const; TQWidget* widget() const;

@ -36,8 +36,8 @@ struct InputDialog::Private {
}; };
InputDialog::InputDialog(TQWidget* tqparent) InputDialog::InputDialog(TQWidget* parent)
: KDialogBase(tqparent, "InputDialog", true, TQString(), : KDialogBase(parent, "InputDialog", true, TQString(),
KDialogBase::Ok|KDialogBase::Cancel) KDialogBase::Ok|KDialogBase::Cancel)
{ {
d = new Private; d = new Private;

@ -38,7 +38,7 @@ class InputDialog : public KDialogBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
InputDialog(TQWidget* tqparent); InputDialog(TQWidget* parent);
~InputDialog(); ~InputDialog();
void setLabel(const TQString& label); void setLabel(const TQString& label);
KLineEdit* lineEdit() const; KLineEdit* lineEdit() const;

@ -76,8 +76,8 @@ static inline double unitToMM(Unit unit) {
} }
PrintDialogPage::PrintDialogPage( Document* document, TQWidget *tqparent, const char *name ) PrintDialogPage::PrintDialogPage( Document* document, TQWidget *parent, const char *name )
: KPrintDialogPage( tqparent, name ) { : KPrintDialogPage( parent, name ) {
mDocument = document; mDocument = document;
mContent = new PrintDialogPageBase(this); mContent = new PrintDialogPageBase(this);
setTitle( mContent->caption() ); setTitle( mContent->caption() );

@ -51,7 +51,7 @@ class LIBGWENVIEW_EXPORT PrintDialogPage : public KPrintDialogPage {
TQ_OBJECT TQ_OBJECT
public: public:
PrintDialogPage( Document* document, TQWidget *tqparent = 0L, const char *name = 0 ); PrintDialogPage( Document* document, TQWidget *parent = 0L, const char *name = 0 );
~PrintDialogPage(); ~PrintDialogPage();
virtual void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false); virtual void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);

@ -561,7 +561,7 @@ void XCFImageFormat::initializeImage ( XCFImage& xcf_image )
// individual colors. // individual colors.
// Note: TQt treats a bitmap with a Black and White color palette // Note: TQt treats a bitmap with a Black and White color palette
// as a tqmask, so only the "on" bits are drawn, regardless of the // as a mask, so only the "on" bits are drawn, regardless of the
// order color table entries. Otherwise (i.e., at least one of the // order color table entries. Otherwise (i.e., at least one of the
// color table entries is not black or white), it obeys the one- // color table entries is not black or white), it obeys the one-
// or two-color palette. Have to ask about this... // or two-color palette. Have to ask about this...
@ -750,7 +750,7 @@ void XCFImageFormat::setPalette ( XCFImage& xcf_image, TQImage& image )
/*! /*!
* An XCF file can contain an arbitrary number of properties associated * An XCF file can contain an arbitrary number of properties associated
* with the image (and layer and tqmask). * with the image (and layer and mask).
* \param xcf_io the data stream connected to the XCF image * \param xcf_io the data stream connected to the XCF image
* \param xcf_image XCF image data. * \param xcf_image XCF image data.
* \return true if there were no I/O errors. * \return true if there were no I/O errors.
@ -964,15 +964,15 @@ bool XCFImageFormat::loadLayerProperties ( SafeDataStream& xcf_io, Layer& layer
break; break;
case PROP_APPLY_MASK: case PROP_APPLY_MASK:
property >> layer.apply_tqmask; property >> layer.apply_mask;
break; break;
case PROP_EDIT_MASK: case PROP_EDIT_MASK:
property >> layer.edit_tqmask; property >> layer.edit_mask;
break; break;
case PROP_SHOW_MASK: case PROP_SHOW_MASK:
property >> layer.show_tqmask; property >> layer.show_mask;
break; break;
case PROP_OFFSETS: case PROP_OFFSETS:
@ -995,9 +995,9 @@ bool XCFImageFormat::loadLayerProperties ( SafeDataStream& xcf_io, Layer& layer
/*! /*!
* An XCF file can contain an arbitrary number of properties associated * An XCF file can contain an arbitrary number of properties associated
* with a channel. Note that this routine only reads tqmask channel properties. * with a channel. Note that this routine only reads mask channel properties.
* \param xcf_io the data stream connected to the XCF image. * \param xcf_io the data stream connected to the XCF image.
* \param layer layer containing the tqmask channel to collect the properties. * \param layer layer containing the mask channel to collect the properties.
* \return true if there were no I/O errors. * \return true if there were no I/O errors.
*/ */
bool XCFImageFormat::loadChannelProperties ( SafeDataStream& xcf_io, Layer& layer ) bool XCFImageFormat::loadChannelProperties ( SafeDataStream& xcf_io, Layer& layer )
@ -1167,9 +1167,9 @@ bool XCFImageFormat::loadLevel ( SafeDataStream& xcf_io, Layer& layer, TQ_INT32
} }
/*! /*!
* A layer can have a one channel image which is used as a tqmask. * A layer can have a one channel image which is used as a mask.
* \param xcf_io the data stream connected to the XCF image. * \param xcf_io the data stream connected to the XCF image.
* \param layer the layer to collect the tqmask image. * \param layer the layer to collect the mask image.
* \return true if there were no I/O errors. * \return true if there were no I/O errors.
*/ */
bool XCFImageFormat::loadMask ( SafeDataStream& xcf_io, Layer& layer ) bool XCFImageFormat::loadMask ( SafeDataStream& xcf_io, Layer& layer )
@ -1181,7 +1181,7 @@ bool XCFImageFormat::loadMask ( SafeDataStream& xcf_io, Layer& layer )
xcf_io >> width >> height >> name; xcf_io >> width >> height >> name;
if ( xcf_io.failed() ) { if ( xcf_io.failed() ) {
qDebug( "XCF: read failure on tqmask info" ); qDebug( "XCF: read failure on mask info" );
return false; return false;
} }
@ -1194,7 +1194,7 @@ bool XCFImageFormat::loadMask ( SafeDataStream& xcf_io, Layer& layer )
xcf_io >> hierarchy_offset; xcf_io >> hierarchy_offset;
if ( xcf_io.failed() ) { if ( xcf_io.failed() ) {
qDebug( "XCF: read failure on tqmask image offset" ); qDebug( "XCF: read failure on mask image offset" );
return false; return false;
} }
@ -1393,8 +1393,8 @@ void XCFImageFormat::assignImageBytes ( Layer& layer, uint i, uint j )
} }
/*! /*!
* Copy the bytes from the tile buffer into the tqmask tile TQImage. * Copy the bytes from the tile buffer into the mask tile TQImage.
* \param layer layer containing the tile buffer and the tqmask tile matrix. * \param layer layer containing the tile buffer and the mask tile matrix.
* \param i column index of current tile. * \param i column index of current tile.
* \param j row index of current tile. * \param j row index of current tile.
*/ */
@ -1605,9 +1605,9 @@ void XCFImageFormat::copyRGBToRGB ( Layer& layer, uint i, uint j, int k, int l,
if ( layer.type == RGBA_GIMAGE ) if ( layer.type == RGBA_GIMAGE )
src_a = INT_MULT( src_a, tqAlpha( src ) ); src_a = INT_MULT( src_a, tqAlpha( src ) );
// Apply the tqmask (if any) // Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j && if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i ) layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) ); src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -1678,9 +1678,9 @@ void XCFImageFormat::copyGrayAToRGB ( Layer& layer, uint i, uint j, int k, int l
src_a = INT_MULT( src_a, layer.opacity ); src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any) // Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j && if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i ) layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) ); src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -1726,7 +1726,7 @@ void XCFImageFormat::copyIndexedAToIndexed ( Layer& layer,uint i,uint j,int k,in
src_a = INT_MULT( src_a, layer.opacity ); src_a = INT_MULT( src_a, layer.opacity );
if ( layer.apply_tqmask == 1 && if ( layer.apply_mask == 1 &&
layer.mask_tiles.size() > j && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i ) layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, src_a = INT_MULT( src_a,
@ -1762,9 +1762,9 @@ void XCFImageFormat::copyIndexedAToRGB ( Layer& layer, uint i, uint j, int k, in
src_a = INT_MULT( src_a, layer.opacity ); src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any) // Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j && if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i ) layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) ); src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -2019,9 +2019,9 @@ void XCFImageFormat::mergeRGBToRGB ( Layer& layer, uint i, uint j, int k, int l,
src_a = INT_MULT( src_a, layer.opacity ); src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any) // Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j && if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i ) layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) ); src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -2121,9 +2121,9 @@ void XCFImageFormat::mergeGrayAToGray ( Layer& layer, uint i, uint j, int k, int
src_a = INT_MULT( src_a, layer.opacity ); src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any) // Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j && if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i ) layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) ); src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -2232,9 +2232,9 @@ void XCFImageFormat::mergeGrayAToRGB ( Layer& layer, uint i, uint j, int k, int
src_a = INT_MULT( src_a, layer.opacity ); src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any) // Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j && if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i ) layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) ); src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -2290,7 +2290,7 @@ void XCFImageFormat::mergeIndexedAToIndexed ( Layer& layer,uint i,uint j,int k,i
src_a = INT_MULT( src_a, layer.opacity ); src_a = INT_MULT( src_a, layer.opacity );
if ( layer.apply_tqmask == 1 && if ( layer.apply_mask == 1 &&
layer.mask_tiles.size() > j && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i ) layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, src_a = INT_MULT( src_a,
@ -2324,9 +2324,9 @@ void XCFImageFormat::mergeIndexedAToRGB ( Layer& layer, uint i, uint j, int k, i
src_a = INT_MULT( src_a, layer.opacity ); src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any) // Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j && if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i ) layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) ); src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );

@ -130,7 +130,7 @@ class XCFImageFormat : public TQImageFormatPlugin {
TQ_INT32 type; //!< Type of the layer (GimpImageType) TQ_INT32 type; //!< Type of the layer (GimpImageType)
char* name; //!< Name of the layer char* name; //!< Name of the layer
TQ_UINT32 hierarchy_offset; //!< File position of Tile hierarchy TQ_UINT32 hierarchy_offset; //!< File position of Tile hierarchy
TQ_UINT32 mask_offset; //!< File position of tqmask image TQ_UINT32 mask_offset; //!< File position of mask image
uint nrows; //!< Number of rows of tiles (y direction) uint nrows; //!< Number of rows of tiles (y direction)
uint ncols; //!< Number of columns of tiles (x direction) uint ncols; //!< Number of columns of tiles (x direction)
@ -139,9 +139,9 @@ class XCFImageFormat : public TQImageFormatPlugin {
//! For Grayscale and Indexed images, the alpha channel is stored //! For Grayscale and Indexed images, the alpha channel is stored
//! separately (in this data structure, anyway). //! separately (in this data structure, anyway).
Tiles alpha_tiles; Tiles alpha_tiles;
Tiles mask_tiles; //!< The layer tqmask (optional) Tiles mask_tiles; //!< The layer mask (optional)
//! Additional information about a layer tqmask. //! Additional information about a layer mask.
struct { struct {
TQ_UINT32 opacity; TQ_UINT32 opacity;
TQ_UINT32 visible; TQ_UINT32 visible;
@ -155,9 +155,9 @@ class XCFImageFormat : public TQImageFormatPlugin {
TQ_UINT32 visible; //!< Is the layer visible? TQ_UINT32 visible; //!< Is the layer visible?
TQ_UINT32 linked; //!< Is this layer linked (geometrically) TQ_UINT32 linked; //!< Is this layer linked (geometrically)
TQ_UINT32 preserve_transparency; //!< Preserve alpha when drawing on layer? TQ_UINT32 preserve_transparency; //!< Preserve alpha when drawing on layer?
TQ_UINT32 apply_tqmask; //!< Apply the layer tqmask? TQ_UINT32 apply_mask; //!< Apply the layer mask?
TQ_UINT32 edit_tqmask; //!< Is the layer tqmask the being edited? TQ_UINT32 edit_mask; //!< Is the layer mask the being edited?
TQ_UINT32 show_tqmask; //!< Show the layer tqmask rather than the image? TQ_UINT32 show_mask; //!< Show the layer mask rather than the image?
TQ_INT32 x_offset; //!< x offset of the layer relative to the image TQ_INT32 x_offset; //!< x offset of the layer relative to the image
TQ_INT32 y_offset; //!< y offset of the layer relative to the image TQ_INT32 y_offset; //!< y offset of the layer relative to the image
TQ_UINT32 mode; //!< Combining mode of layer (LayerModeEffects) TQ_UINT32 mode; //!< Combining mode of layer (LayerModeEffects)
@ -168,7 +168,7 @@ class XCFImageFormat : public TQImageFormatPlugin {
//! The data from tile buffer is copied to the Tile by this //! The data from tile buffer is copied to the Tile by this
//! method. Depending on the type of the tile (RGB, Grayscale, //! method. Depending on the type of the tile (RGB, Grayscale,
//! Indexed) and use (image or tqmask), the bytes in the buffer are //! Indexed) and use (image or mask), the bytes in the buffer are
//! copied in different ways. //! copied in different ways.
void (*assignBytes)( Layer& layer, uint i, uint j ); void (*assignBytes)( Layer& layer, uint i, uint j );

@ -59,8 +59,8 @@ const char CONFIG_CACHE_GROUP[]="cache";
typedef KParts::GenericFactory<GVDirPart> GVDirFactory; typedef KParts::GenericFactory<GVDirPart> GVDirFactory;
K_EXPORT_COMPONENT_FACTORY( libgvdirpart /*library name*/, GVDirFactory ) K_EXPORT_COMPONENT_FACTORY( libgvdirpart /*library name*/, GVDirFactory )
GVDirPart::GVDirPart(TQWidget* parentWidget, const char* /*widgetName*/, TQObject* tqparent, const char* name, GVDirPart::GVDirPart(TQWidget* parentWidget, const char* /*widgetName*/, TQObject* parent, const char* name,
const TQStringList &) : KParts::ReadOnlyPart( tqparent, name ) { const TQStringList &) : KParts::ReadOnlyPart( parent, name ) {
GVDirFactory::instance()->iconLoader()->addAppDir( "gwenview"); GVDirFactory::instance()->iconLoader()->addAppDir( "gwenview");
setInstance( GVDirFactory::instance() ); setInstance( GVDirFactory::instance() );
KGlobal::locale()->insertCatalogue("gwenview"); KGlobal::locale()->insertCatalogue("gwenview");

@ -59,11 +59,11 @@ const char CONFIG_CACHE_GROUP[]="cache";
#endif #endif
static bool storeData(TQWidget* tqparent, TQFile* file, const TQByteArray& data) { static bool storeData(TQWidget* parent, TQFile* file, const TQByteArray& data) {
uint sizeWritten = file->writeBlock(data); uint sizeWritten = file->writeBlock(data);
if (sizeWritten != data.size()) { if (sizeWritten != data.size()) {
KMessageBox::error( KMessageBox::error(
tqparent, parent,
i18n("Could not save image to a temporary file")); i18n("Could not save image to a temporary file"));
return false; return false;
} }
@ -75,9 +75,9 @@ static bool storeData(TQWidget* tqparent, TQFile* file, const TQByteArray& data)
typedef KParts::GenericFactory<GVImagePart> GVImageFactory; typedef KParts::GenericFactory<GVImagePart> GVImageFactory;
K_EXPORT_COMPONENT_FACTORY( libgvimagepart /*library name*/, GVImageFactory ) K_EXPORT_COMPONENT_FACTORY( libgvimagepart /*library name*/, GVImageFactory )
GVImagePart::GVImagePart(TQWidget* parentWidget, const char* /*widgetName*/, TQObject* tqparent, GVImagePart::GVImagePart(TQWidget* parentWidget, const char* /*widgetName*/, TQObject* parent,
const char* name, const TQStringList &) const char* name, const TQStringList &)
: KParts::ReadOnlyPart( tqparent, name ) : KParts::ReadOnlyPart( parent, name )
, mPrefetch( NULL ) , mPrefetch( NULL )
, mLastDirection( DirectionUnknown ) { , mLastDirection( DirectionUnknown ) {
GVImageFactory::instance()->iconLoader()->addAppDir( "gwenview"); GVImageFactory::instance()->iconLoader()->addAppDir( "gwenview");

@ -384,7 +384,7 @@ rm -rf $RPM_BUILD_ROOT
- Fixes: - Fixes:
- Gave contributors the credit they deserve in the about box. - Gave contributors the credit they deserve in the about box.
- Updated to libexif 0.5.12 and applied patch from libexif CVS. - Updated to libexif 0.5.12 and applied patch from libexif CVS.
- When going to the tqparent folder, make sure the folder we were in before is selected. - When going to the parent folder, make sure the folder we were in before is selected.
- If there's no image in the current folder, select the first visible file. - If there's no image in the current folder, select the first visible file.
- When holding down Shift to zoom, keep the same area of the image under the cursor. - When holding down Shift to zoom, keep the same area of the image under the cursor.
- Nicer drag cursor. - Nicer drag cursor.

@ -45,10 +45,10 @@ class TSMainThread
virtual void run() { assert( false ); } virtual void run() { assert( false ); }
}; };
TSThread::Helper::Helper( TSThread* tqparent ) TSThread::Helper::Helper( TSThread* parent )
: thread( tqparent ) : thread( parent )
{ {
assert( tqparent ); assert( parent );
} }
void TSThread::Helper::run() void TSThread::Helper::run()

@ -176,7 +176,7 @@ class TSThread
: public TQThread : public TQThread
{ {
public: public:
Helper( TSThread* tqparent ); Helper( TSThread* parent );
protected: protected:
virtual void run(); virtual void run();
private: private:

Loading…
Cancel
Save