rename the following methods:

tqparent parent
tqmask mask


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

@ -34,8 +34,8 @@
#include "dolphin.h" #include "dolphin.h"
#include "urlnavigator.h" #include "urlnavigator.h"
BookmarkSelector::BookmarkSelector(URLNavigator* tqparent) : BookmarkSelector::BookmarkSelector(URLNavigator* parent) :
URLButton(tqparent), URLButton(parent),
m_selectedIndex(0) m_selectedIndex(0)
{ {
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQ_NoFocus);
@ -88,8 +88,8 @@ void BookmarkSelector::updateSelection(const KURL& url)
int maxLength = 0; int maxLength = 0;
m_selectedIndex = -1; m_selectedIndex = -1;
// Search the bookmark which is equal to the URL or at least is a tqparent URL. // Search the bookmark which is equal to the URL or at least is a parent URL.
// If there are more than one possible tqparent URL candidates, choose the bookmark // If there are more than one possible parent URL candidates, choose the bookmark
// which covers the bigger range of the URL. // which covers the bigger range of the URL.
int i = 0; int i = 0;
while (!bookmark.isNull()) { while (!bookmark.isNull()) {
@ -136,7 +136,7 @@ void BookmarkSelector::drawButton(TQPainter* painter)
foregroundColor = KGlobalSettings::buttonTextColor(); foregroundColor = KGlobalSettings::buttonTextColor();
} }
// dimm the colors if the tqparent view does not have the focus // dimm the colors if the parent view does not have the focus
const DolphinView* parentView = urlNavigator()->dolphinView(); const DolphinView* parentView = urlNavigator()->dolphinView();
const Dolphin& dolphin = Dolphin::mainWin(); const Dolphin& dolphin = Dolphin::mainWin();

@ -44,18 +44,18 @@ class BookmarkSelector : public URLButton
public: public:
/** /**
* @param tqparent Parent widget where the bookmark selector * @param parent Parent widget where the bookmark selector
* is embedded into. * is embedded into.
*/ */
BookmarkSelector(URLNavigator* tqparent); BookmarkSelector(URLNavigator* parent);
virtual ~BookmarkSelector(); virtual ~BookmarkSelector();
/** /**
* Updates the selection dependent from the given URL \a url. The * Updates the selection dependent from the given URL \a url. The
* URL must not match exactly to one of the available bookmarks: * URL must not match exactly to one of the available bookmarks:
* The bookmark which is equal to the URL or at least is a tqparent URL * The bookmark which is equal to the URL or at least is a parent URL
* is selected. If there are more than one possible tqparent URL candidates, * is selected. If there are more than one possible parent URL candidates,
* the bookmark which covers the bigger range of the URL is selected. * the bookmark which covers the bigger range of the URL is selected.
*/ */
void updateSelection(const KURL& url); void updateSelection(const KURL& url);

@ -37,18 +37,18 @@
#include "dolphinsettings.h" #include "dolphinsettings.h"
#include "editbookmarkdialog.h" #include "editbookmarkdialog.h"
BookmarksSettingsPage::BookmarksSettingsPage(TQWidget*tqparent) : BookmarksSettingsPage::BookmarksSettingsPage(TQWidget*parent) :
SettingsPageBase(tqparent), SettingsPageBase(parent),
m_addButton(0), m_addButton(0),
m_removeButton(0), m_removeButton(0),
m_moveUpButton(0), m_moveUpButton(0),
m_moveDownButton(0) m_moveDownButton(0)
{ {
TQVBoxLayout* topLayout = new TQVBoxLayout(tqparent, 2, KDialog::spacingHint()); TQVBoxLayout* topLayout = new TQVBoxLayout(parent, 2, KDialog::spacingHint());
const int spacing = KDialog::spacingHint(); const int spacing = KDialog::spacingHint();
TQHBox* hBox = new TQHBox(tqparent); TQHBox* hBox = new TQHBox(parent);
hBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); hBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
hBox->setSpacing(spacing); hBox->setSpacing(spacing);
hBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Ignored); hBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Ignored);

@ -38,7 +38,7 @@ class BookmarksSettingsPage : public SettingsPageBase
TQ_OBJECT TQ_OBJECT
public: public:
BookmarksSettingsPage(TQWidget* tqparent); BookmarksSettingsPage(TQWidget* parent);
virtual ~BookmarksSettingsPage(); virtual ~BookmarksSettingsPage();

@ -35,8 +35,8 @@
#include "dolphinview.h" #include "dolphinview.h"
#include "editbookmarkdialog.h" #include "editbookmarkdialog.h"
BookmarksSidebarPage::BookmarksSidebarPage(TQWidget* tqparent) : BookmarksSidebarPage::BookmarksSidebarPage(TQWidget* parent) :
SidebarPage(tqparent) SidebarPage(parent)
{ {
TQVBoxLayout* tqlayout = new TQVBoxLayout(this); TQVBoxLayout* tqlayout = new TQVBoxLayout(this);
m_bookmarksList = new BookmarksListBox(this); m_bookmarksList = new BookmarksListBox(this);
@ -194,8 +194,8 @@ void BookmarksSidebarPage::adjustSelection(const KURL& url)
int maxLength = 0; int maxLength = 0;
int selectedIndex = -1; int selectedIndex = -1;
// Search the bookmark which is equal to the URL or at least is a tqparent URL. // Search the bookmark which is equal to the URL or at least is a parent URL.
// If there are more than one possible tqparent URL candidates, choose the bookmark // If there are more than one possible parent URL candidates, choose the bookmark
// which covers the bigger range of the URL. // which covers the bigger range of the URL.
int i = 0; int i = 0;
while (!bookmark.isNull()) { while (!bookmark.isNull()) {
@ -238,8 +238,8 @@ void BookmarksSidebarPage::connectToActiveView()
this, TQT_SLOT(slotURLChanged(const KURL&))); this, TQT_SLOT(slotURLChanged(const KURL&)));
} }
BookmarksListBox::BookmarksListBox(TQWidget* tqparent) : BookmarksListBox::BookmarksListBox(TQWidget* parent) :
TQListBox(tqparent) TQListBox(parent)
{ {
setAcceptDrops(true); setAcceptDrops(true);
} }

@ -41,7 +41,7 @@ class BookmarksSidebarPage : public SidebarPage
TQ_OBJECT TQ_OBJECT
public: public:
BookmarksSidebarPage(TQWidget* tqparent); BookmarksSidebarPage(TQWidget* parent);
virtual ~BookmarksSidebarPage(); virtual ~BookmarksSidebarPage();
protected: protected:
@ -71,8 +71,8 @@ private:
/** /**
* Updates the selection dependent from the given URL \a url. The * Updates the selection dependent from the given URL \a url. The
* URL must not match exactly to one of the available bookmarks: * URL must not match exactly to one of the available bookmarks:
* The bookmark which is equal to the URL or at least is a tqparent URL * The bookmark which is equal to the URL or at least is a parent URL
* is selected. If there are more than one possible tqparent URL candidates, * is selected. If there are more than one possible parent URL candidates,
* the bookmark which covers the bigger range of the URL is selected. * the bookmark which covers the bigger range of the URL is selected.
*/ */
void adjustSelection(const KURL& url); void adjustSelection(const KURL& url);
@ -98,7 +98,7 @@ class BookmarksListBox : public TQListBox
TQ_OBJECT TQ_OBJECT
public: public:
BookmarksListBox(TQWidget* tqparent); BookmarksListBox(TQWidget* parent);
virtual ~BookmarksListBox(); virtual ~BookmarksListBox();
protected: protected:

@ -36,8 +36,8 @@
#include "dolphindetailsviewsettings.h" #include "dolphindetailsviewsettings.h"
#include "dolphindetailsview.h" #include "dolphindetailsview.h"
DetailsViewSettingsPage::DetailsViewSettingsPage(TQWidget *tqparent) : DetailsViewSettingsPage::DetailsViewSettingsPage(TQWidget *parent) :
TQVBox(tqparent), TQVBox(parent),
m_dateBox(0), m_dateBox(0),
m_permissionsBox(0), m_permissionsBox(0),
m_ownerBox(0), m_ownerBox(0),

@ -40,7 +40,7 @@ class DetailsViewSettingsPage : public TQVBox
TQ_OBJECT TQ_OBJECT
public: public:
DetailsViewSettingsPage(TQWidget* tqparent); DetailsViewSettingsPage(TQWidget* parent);
virtual ~DetailsViewSettingsPage(); virtual ~DetailsViewSettingsPage();
/** /**

@ -44,10 +44,10 @@
#include "dolphinsettings.h" #include "dolphinsettings.h"
DolphinContextMenu::DolphinContextMenu(DolphinView* tqparent, DolphinContextMenu::DolphinContextMenu(DolphinView* parent,
KFileItem* fileInfo, KFileItem* fileInfo,
const TQPoint& pos) : const TQPoint& pos) :
m_dolphinView(tqparent), m_dolphinView(parent),
m_fileInfo(fileInfo), m_fileInfo(fileInfo),
m_pos(pos) m_pos(pos)
{ {

@ -54,14 +54,14 @@ class DolphinContextMenu
{ {
public: public:
/** /**
* @tqparent Pointer to the dolphin view the context menu * @parent Pointer to the dolphin view the context menu
* belongs to. * belongs to.
* @fileInfo Pointer to the file item the context menu * @fileInfo Pointer to the file item the context menu
* is applied. If 0 is passed, the context menu * is applied. If 0 is passed, the context menu
* is above the viewport. * is above the viewport.
* @pos Position of the upper left edge of the context menu. * @pos Position of the upper left edge of the context menu.
*/ */
DolphinContextMenu(DolphinView* tqparent, DolphinContextMenu(DolphinView* parent,
KFileItem* fileInfo, KFileItem* fileInfo,
const TQPoint& pos); const TQPoint& pos);

@ -41,9 +41,9 @@
#include "dolphinstatusbar.h" #include "dolphinstatusbar.h"
#include "dolphindetailsviewsettings.h" #include "dolphindetailsviewsettings.h"
DolphinDetailsView::DolphinDetailsView(DolphinView* tqparent) : DolphinDetailsView::DolphinDetailsView(DolphinView* parent) :
KFileDetailView(tqparent, 0), KFileDetailView(parent, 0),
m_dolphinView(tqparent), m_dolphinView(parent),
m_resizeTimer(0), m_resizeTimer(0),
m_scrollTimer(0), m_scrollTimer(0),
m_rubber(0) m_rubber(0)
@ -76,7 +76,7 @@ DolphinDetailsView::DolphinDetailsView(DolphinView* tqparent) :
connect(this, TQT_SIGNAL(itemRenamed(TQListViewItem*, const TQString&, int)), connect(this, TQT_SIGNAL(itemRenamed(TQListViewItem*, const TQString&, int)),
this, TQT_SLOT(slotItemRenamed(TQListViewItem*, const TQString&, int))); this, TQT_SLOT(slotItemRenamed(TQListViewItem*, const TQString&, int)));
connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const KURL::List&, const KURL&)), connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const KURL::List&, const KURL&)),
tqparent, TQT_SLOT(slotURLListDropped(TQDropEvent*, const KURL::List&, const KURL&))); parent, TQT_SLOT(slotURLListDropped(TQDropEvent*, const KURL::List&, const KURL&)));
TQClipboard* clipboard = TQApplication::tqclipboard(); TQClipboard* clipboard = TQApplication::tqclipboard();
connect(clipboard, TQT_SIGNAL(dataChanged()), connect(clipboard, TQT_SIGNAL(dataChanged()),
@ -667,9 +667,9 @@ void DolphinDetailsView::slotHeaderClicked(int /* section */)
} }
} }
DolphinDetailsView::DolphinListViewItem::DolphinListViewItem(TQListView* tqparent, DolphinDetailsView::DolphinListViewItem::DolphinListViewItem(TQListView* parent,
KFileItem* fileItem) : KFileItem* fileItem) :
KFileListViewItem(tqparent, fileItem) KFileListViewItem(parent, fileItem)
{ {
const int iconSize = DolphinSettings::instance().detailsView()->iconSize(); const int iconSize = DolphinSettings::instance().detailsView()->iconSize();
KFileItem* info = fileInfo(); KFileItem* info = fileInfo();
@ -716,7 +716,7 @@ void DolphinDetailsView::DolphinListViewItem::paintCell(TQPainter* painter,
int tqalignment) int tqalignment)
{ {
const TQListView* view = listView(); const TQListView* view = listView();
const bool isActive = TQT_BASE_OBJECT(view->tqparent()) == TQT_BASE_OBJECT(Dolphin::mainWin().activeView()); const bool isActive = TQT_BASE_OBJECT(view->parent()) == TQT_BASE_OBJECT(Dolphin::mainWin().activeView());
if (isSelected()) { if (isSelected()) {
// Per default the selection is drawn above the whole width of the item. As a consistent // Per default the selection is drawn above the whole width of the item. As a consistent
// behavior with the icon view is wanted, only the the column containing the file name // behavior with the icon view is wanted, only the the column containing the file name
@ -729,8 +729,8 @@ void DolphinDetailsView::DolphinListViewItem::paintCell(TQPainter* painter,
if (column == 0) { if (column == 0) {
// draw the selection only on the first column // draw the selection only on the first column
TQListView* tqparent = listView(); TQListView* parent = listView();
const int itemWidth = width(tqparent->fontMetrics(), tqparent, 0); const int itemWidth = width(parent->fontMetrics(), parent, 0);
if (isActive) { if (isActive) {
KFileListViewItem::paintCell(painter, tqcolorGroup, column, itemWidth, tqalignment); KFileListViewItem::paintCell(painter, tqcolorGroup, column, itemWidth, tqalignment);
} }
@ -761,9 +761,9 @@ void DolphinDetailsView::DolphinListViewItem::paintFocus(TQPainter* painter,
{ {
// draw the focus consistently with the selection (see implementation notes // draw the focus consistently with the selection (see implementation notes
// in DolphinListViewItem::paintCell) // in DolphinListViewItem::paintCell)
TQListView* tqparent = listView(); TQListView* parent = listView();
int visibleWidth = width(tqparent->fontMetrics(), tqparent, 0); int visibleWidth = width(parent->fontMetrics(), parent, 0);
const int colWidth = tqparent->columnWidth(0); const int colWidth = parent->columnWidth(0);
if (visibleWidth > colWidth) { if (visibleWidth > colWidth) {
visibleWidth = colWidth; visibleWidth = colWidth;
} }

@ -57,7 +57,7 @@ public:
GroupColumn = 5 GroupColumn = 5
}; };
DolphinDetailsView(DolphinView* tqparent); DolphinDetailsView(DolphinView* parent);
virtual ~DolphinDetailsView(); virtual ~DolphinDetailsView();
@ -186,7 +186,7 @@ private slots:
private: private:
class DolphinListViewItem : public KFileListViewItem { class DolphinListViewItem : public KFileListViewItem {
public: public:
DolphinListViewItem(TQListView* tqparent, DolphinListViewItem(TQListView* parent,
KFileItem* fileItem); KFileItem* fileItem);
virtual ~DolphinListViewItem(); virtual ~DolphinListViewItem();
virtual void paintCell(TQPainter* painter, virtual void paintCell(TQPainter* painter,

@ -38,11 +38,11 @@
#include "dolphinsettings.h" #include "dolphinsettings.h"
#include "dolphiniconsviewsettings.h" #include "dolphiniconsviewsettings.h"
DolphinIconsView::DolphinIconsView(DolphinView* tqparent, LayoutMode layoutMode) : DolphinIconsView::DolphinIconsView(DolphinView* parent, LayoutMode layoutMode) :
KFileIconView(tqparent, 0), KFileIconView(parent, 0),
m_previewIconSize(-1), m_previewIconSize(-1),
m_layoutMode(layoutMode), m_layoutMode(layoutMode),
m_dolphinView(tqparent) m_dolphinView(parent)
{ {
setAcceptDrops(true); setAcceptDrops(true);
setMode(KIconView::Execute); setMode(KIconView::Execute);
@ -62,7 +62,7 @@ DolphinIconsView::DolphinIconsView(DolphinView* tqparent, LayoutMode layoutMode)
connect(this, TQT_SIGNAL(itemRenamed(TQIconViewItem*, const TQString&)), connect(this, TQT_SIGNAL(itemRenamed(TQIconViewItem*, const TQString&)),
this, TQT_SLOT(slotItemRenamed(TQIconViewItem*, const TQString&))); this, TQT_SLOT(slotItemRenamed(TQIconViewItem*, const TQString&)));
connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const KURL::List&, const KURL&)), connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const KURL::List&, const KURL&)),
tqparent, TQT_SLOT(slotURLListDropped(TQDropEvent*, const KURL::List&, const KURL&))); parent, TQT_SLOT(slotURLListDropped(TQDropEvent*, const KURL::List&, const KURL&)));
TQClipboard* clipboard = TQApplication::tqclipboard(); TQClipboard* clipboard = TQApplication::tqclipboard();
connect(clipboard, TQT_SIGNAL(dataChanged()), connect(clipboard, TQT_SIGNAL(dataChanged()),

@ -47,7 +47,7 @@ public:
Previews Previews
}; };
DolphinIconsView(DolphinView *tqparent, LayoutMode layoutMode); DolphinIconsView(DolphinView *parent, LayoutMode layoutMode);
virtual ~DolphinIconsView(); virtual ~DolphinIconsView();

@ -28,8 +28,8 @@
#include "statusbarmessagelabel.h" #include "statusbarmessagelabel.h"
#include "statusbarspaceinfo.h" #include "statusbarspaceinfo.h"
DolphinStatusBar::DolphinStatusBar(DolphinView* tqparent) : DolphinStatusBar::DolphinStatusBar(DolphinView* parent) :
TQHBox(tqparent), TQHBox(parent),
m_messageLabel(0), m_messageLabel(0),
m_spaceInfo(0), m_spaceInfo(0),
m_progressBar(0), m_progressBar(0),
@ -39,7 +39,7 @@ DolphinStatusBar::DolphinStatusBar(DolphinView* tqparent) :
m_messageLabel->tqsetSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Fixed); m_messageLabel->tqsetSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Fixed);
m_spaceInfo = new StatusBarSpaceInfo(this); m_spaceInfo = new StatusBarSpaceInfo(this);
m_spaceInfo->setURL(tqparent->url()); m_spaceInfo->setURL(parent->url());
m_progressText = new TQLabel(this); m_progressText = new TQLabel(this);
m_progressText->hide(); m_progressText->hide();
@ -56,7 +56,7 @@ DolphinStatusBar::DolphinStatusBar(DolphinView* tqparent) :
setMinimumHeight(size.height()); setMinimumHeight(size.height());
m_messageLabel->setMinimumTextHeight(size.height()); m_messageLabel->setMinimumTextHeight(size.height());
connect(tqparent, TQT_SIGNAL(signalURLChanged(const KURL&)), connect(parent, TQT_SIGNAL(signalURLChanged(const KURL&)),
this, TQT_SLOT(slotURLChanged(const KURL&))); this, TQT_SLOT(slotURLChanged(const KURL&)));
} }

@ -55,7 +55,7 @@ public:
Error Error
}; };
DolphinStatusBar(DolphinView* tqparent = 0); DolphinStatusBar(DolphinView* parent = 0);
virtual ~DolphinStatusBar(); virtual ~DolphinStatusBar();
/** /**

@ -41,11 +41,11 @@
#include "filterbar.h" #include "filterbar.h"
DolphinView::DolphinView(TQWidget *tqparent, DolphinView::DolphinView(TQWidget *parent,
const KURL& url, const KURL& url,
Mode mode, Mode mode,
bool showHiddenFiles) : bool showHiddenFiles) :
TQWidget(tqparent), TQWidget(parent),
m_refreshing(false), m_refreshing(false),
m_showProgress(false), m_showProgress(false),
m_mode(mode), m_mode(mode),

@ -103,7 +103,7 @@ public:
SortByDate = 2 SortByDate = 2
}; };
DolphinView(TQWidget* tqparent, DolphinView(TQWidget* parent,
const KURL& url, const KURL& url,
Mode mode = IconsView, Mode mode = IconsView,
bool showHiddenFiles = false); bool showHiddenFiles = false);

@ -30,8 +30,8 @@
#include "dolphin.h" #include "dolphin.h"
FilterBar::FilterBar(TQWidget *tqparent, const char *name) : FilterBar::FilterBar(TQWidget *parent, const char *name) :
TQWidget(tqparent, name) TQWidget(parent, name)
{ {
const int gap = 3; const int gap = 3;

@ -37,7 +37,7 @@ class FilterBar : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
FilterBar(TQWidget *tqparent = 0, const char *name = 0); FilterBar(TQWidget *parent = 0, const char *name = 0);
virtual ~FilterBar(); virtual ~FilterBar();
signals: signals:

@ -38,13 +38,13 @@
#include "dolphin.h" #include "dolphin.h"
#include "dolphinview.h" #include "dolphinview.h"
GeneralSettingsPage::GeneralSettingsPage(TQWidget* tqparent) : GeneralSettingsPage::GeneralSettingsPage(TQWidget* parent) :
SettingsPageBase(tqparent), SettingsPageBase(parent),
m_homeURL(0), m_homeURL(0),
m_startSplit(0), m_startSplit(0),
m_startEditable(0) m_startEditable(0)
{ {
TQVBoxLayout* topLayout = new TQVBoxLayout(tqparent, 2, KDialog::spacingHint()); TQVBoxLayout* topLayout = new TQVBoxLayout(parent, 2, KDialog::spacingHint());
const int spacing = KDialog::spacingHint(); const int spacing = KDialog::spacingHint();
const int margin = KDialog::marginHint(); const int margin = KDialog::marginHint();
@ -52,7 +52,7 @@ GeneralSettingsPage::GeneralSettingsPage(TQWidget* tqparent) :
DolphinSettings& settings = DolphinSettings::instance(); DolphinSettings& settings = DolphinSettings::instance();
TQVBox* vBox = new TQVBox(tqparent); TQVBox* vBox = new TQVBox(parent);
vBox->tqsetSizePolicy(sizePolicy); vBox->tqsetSizePolicy(sizePolicy);
vBox->setSpacing(spacing); vBox->setSpacing(spacing);
vBox->setMargin(margin); vBox->setMargin(margin);

@ -39,7 +39,7 @@ class GeneralSettingsPage : public SettingsPageBase
TQ_OBJECT TQ_OBJECT
public: public:
GeneralSettingsPage(TQWidget* tqparent); GeneralSettingsPage(TQWidget* parent);
virtual ~GeneralSettingsPage(); virtual ~GeneralSettingsPage();

@ -39,8 +39,8 @@
#define GRID_SPACING_INC 12 #define GRID_SPACING_INC 12
IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode,
TQWidget* tqparent) : TQWidget* parent) :
TQVBox(tqparent), TQVBox(parent),
m_mode(mode), m_mode(mode),
m_iconSizeSlider(0), m_iconSizeSlider(0),
m_previewSizeSlider(0), m_previewSizeSlider(0),

@ -56,7 +56,7 @@ class IconsViewSettingsPage : public TQVBox
public: public:
IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, IconsViewSettingsPage(DolphinIconsView::LayoutMode mode,
TQWidget* tqparent); TQWidget* parent);
virtual ~IconsViewSettingsPage(); virtual ~IconsViewSettingsPage();
/** /**

@ -46,8 +46,8 @@
#include "pixmapviewer.h" #include "pixmapviewer.h"
#include "dolphinsettings.h" #include "dolphinsettings.h"
InfoSidebarPage::InfoSidebarPage(TQWidget* tqparent) : InfoSidebarPage::InfoSidebarPage(TQWidget* parent) :
SidebarPage(tqparent), SidebarPage(parent),
m_multipleSelection(false), m_multipleSelection(false),
m_pendingPreview(false), m_pendingPreview(false),
m_timer(0), m_timer(0),
@ -529,9 +529,9 @@ void InfoSidebarPage::insertActions()
ServiceButton::ServiceButton(const TQIconSet& icon, ServiceButton::ServiceButton(const TQIconSet& icon,
const TQString& text, const TQString& text,
TQWidget* tqparent, TQWidget* parent,
int index) : int index) :
TQPushButton(icon, text, tqparent), TQPushButton(icon, text, parent),
m_hover(false), m_hover(false),
m_index(index) m_index(index)
{ {

@ -54,7 +54,7 @@ class InfoSidebarPage : public SidebarPage
TQ_OBJECT TQ_OBJECT
public: public:
InfoSidebarPage(TQWidget* tqparent); InfoSidebarPage(TQWidget* parent);
virtual ~InfoSidebarPage(); virtual ~InfoSidebarPage();
protected: protected:
@ -173,7 +173,7 @@ class ServiceButton : public TQPushButton
public: public:
ServiceButton(const TQIconSet& icon, ServiceButton(const TQIconSet& icon,
const TQString& text, const TQString& text,
TQWidget* tqparent, TQWidget* parent,
int index); int index);
virtual ~ServiceButton(); virtual ~ServiceButton();

@ -24,8 +24,8 @@
#include <kiconloader.h> #include <kiconloader.h>
#include <tqpainter.h> #include <tqpainter.h>
PixmapViewer::PixmapViewer(TQWidget* tqparent) : PixmapViewer::PixmapViewer(TQWidget* parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
setMinimumWidth(KIcon::SizeEnormous); setMinimumWidth(KIcon::SizeEnormous);
setMinimumWidth(KIcon::SizeEnormous); setMinimumWidth(KIcon::SizeEnormous);

@ -35,7 +35,7 @@ class PixmapViewer : public TQWidget
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PixmapViewer(TQWidget* tqparent); PixmapViewer(TQWidget* parent);
virtual ~PixmapViewer(); virtual ~PixmapViewer();
void setPixmap(const TQPixmap& pixmap); void setPixmap(const TQPixmap& pixmap);
const TQPixmap& pixmap() const { return m_pixmap; } const TQPixmap& pixmap() const { return m_pixmap; }

@ -20,8 +20,8 @@
#include "settingspagebase.h" #include "settingspagebase.h"
SettingsPageBase::SettingsPageBase(TQWidget* tqparent) : SettingsPageBase::SettingsPageBase(TQWidget* parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
} }

@ -34,7 +34,7 @@ class SettingsPageBase : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
SettingsPageBase(TQWidget* tqparent); SettingsPageBase(TQWidget* parent);
virtual ~SettingsPageBase(); virtual ~SettingsPageBase();
/** /**

@ -20,8 +20,8 @@
#include "sidebarpage.h" #include "sidebarpage.h"
#include "dolphin.h" #include "dolphin.h"
SidebarPage::SidebarPage(TQWidget* tqparent) : SidebarPage::SidebarPage(TQWidget* parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
connect(&Dolphin::mainWin(), TQT_SIGNAL(activeViewChanged()), connect(&Dolphin::mainWin(), TQT_SIGNAL(activeViewChanged()),
this, TQT_SLOT(activeViewChanged())); this, TQT_SLOT(activeViewChanged()));

@ -36,7 +36,7 @@ class SidebarPage : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
SidebarPage(TQWidget* tqparent); SidebarPage(TQWidget* parent);
virtual ~SidebarPage(); virtual ~SidebarPage();
protected slots: protected slots:

@ -36,10 +36,10 @@
/** /**
* *
* @param tqparent * @param parent
*/ */
leftSidebar::leftSidebar(TQWidget* tqparent) : leftSidebar::leftSidebar(TQWidget* parent) :
TQWidget(tqparent), TQWidget(parent),
m_pagesSelector(0), m_pagesSelector(0),
m_page(0), m_page(0),
m_tqlayout(0) m_tqlayout(0)
@ -114,8 +114,8 @@ int leftSidebar::indexForName(const TQString& name) const
return 0; return 0;
} }
rightSidebar::rightSidebar(TQWidget* tqparent) : rightSidebar::rightSidebar(TQWidget* parent) :
TQWidget(tqparent), TQWidget(parent),
m_pagesSelector(0), m_pagesSelector(0),
m_page(0), m_page(0),
m_tqlayout(0) m_tqlayout(0)

@ -37,7 +37,7 @@ class leftSidebar : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
leftSidebar(TQWidget* tqparent); leftSidebar(TQWidget* parent);
virtual ~leftSidebar(); virtual ~leftSidebar();
virtual TQSize tqsizeHint() const; virtual TQSize tqsizeHint() const;
@ -45,7 +45,7 @@ class leftSidebar : public TQWidget
signals: signals:
/** /**
* The user selected an item on sidebar widget and item has * The user selected an item on sidebar widget and item has
* URL property, so inform the tqparent to go to this URL; * URL property, so inform the parent to go to this URL;
*/ */
void urlChanged(const KURL& url); void urlChanged(const KURL& url);
@ -66,7 +66,7 @@ class rightSidebar : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
rightSidebar(TQWidget* tqparent); rightSidebar(TQWidget* parent);
virtual ~rightSidebar(); virtual ~rightSidebar();
virtual TQSize tqsizeHint() const; virtual TQSize tqsizeHint() const;
@ -74,7 +74,7 @@ class rightSidebar : public TQWidget
signals: signals:
/** /**
* The user selected an item on sidebar widget and item has * The user selected an item on sidebar widget and item has
* URL property, so inform the tqparent togo to this URL; * URL property, so inform the parent togo to this URL;
*/ */
void urlChanged(const KURL& url); void urlChanged(const KURL& url);

@ -25,8 +25,8 @@
#include <kiconloader.h> #include <kiconloader.h>
#include <kglobalsettings.h> #include <kglobalsettings.h>
StatusBarMessageLabel::StatusBarMessageLabel(TQWidget* tqparent) : StatusBarMessageLabel::StatusBarMessageLabel(TQWidget* parent) :
TQWidget(tqparent), TQWidget(parent),
m_type(DolphinStatusBar::Default), m_type(DolphinStatusBar::Default),
m_state(Default), m_state(Default),
m_illumination(0), m_illumination(0),

@ -43,7 +43,7 @@ class StatusBarMessageLabel : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
StatusBarMessageLabel(TQWidget* tqparent); StatusBarMessageLabel(TQWidget* parent);
virtual ~StatusBarMessageLabel(); virtual ~StatusBarMessageLabel();
void setType(DolphinStatusBar::Type type); void setType(DolphinStatusBar::Type type);

@ -27,8 +27,8 @@
#include <klocale.h> #include <klocale.h>
#include <kio/job.h> #include <kio/job.h>
StatusBarSpaceInfo::StatusBarSpaceInfo(TQWidget* tqparent) : StatusBarSpaceInfo::StatusBarSpaceInfo(TQWidget* parent) :
TQWidget(tqparent), TQWidget(parent),
m_gettingSize(false), m_gettingSize(false),
m_kBSize(0), m_kBSize(0),
m_kBAvailable(0) m_kBAvailable(0)

@ -37,7 +37,7 @@ class StatusBarSpaceInfo : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
StatusBarSpaceInfo(TQWidget* tqparent); StatusBarSpaceInfo(TQWidget* parent);
virtual ~StatusBarSpaceInfo(); virtual ~StatusBarSpaceInfo();
void setURL(const KURL& url); void setURL(const KURL& url);

@ -32,16 +32,16 @@
#include "dolphin.h" #include "dolphin.h"
URLButton::URLButton(URLNavigator* tqparent) URLButton::URLButton(URLNavigator* parent)
: TQPushButton(tqparent), : TQPushButton(parent),
m_displayHint(0), m_displayHint(0),
m_urlNavigator(tqparent) m_urlNavigator(parent)
{ {
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQ_NoFocus);
tqsetSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Fixed); tqsetSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Fixed);
setMinimumHeight(tqparent->minimumHeight()); setMinimumHeight(parent->minimumHeight());
connect(this, TQT_SIGNAL(clicked()), tqparent, TQT_SLOT(slotRequestActivation())); connect(this, TQT_SIGNAL(clicked()), parent, TQT_SLOT(slotRequestActivation()));
connect(&Dolphin::mainWin(), TQT_SIGNAL(activeViewChanged()), connect(&Dolphin::mainWin(), TQT_SIGNAL(activeViewChanged()),
this, TQT_SLOT(update())); this, TQT_SLOT(update()));
} }

@ -41,7 +41,7 @@ class URLButton : public TQPushButton
TQ_OBJECT TQ_OBJECT
public: public:
URLButton(URLNavigator* tqparent); URLButton(URLNavigator* parent);
virtual ~URLButton(); virtual ~URLButton();
URLNavigator* urlNavigator() const; URLNavigator* urlNavigator() const;

@ -38,8 +38,8 @@
#include "dolphinview.h" #include "dolphinview.h"
#include "dolphin.h" #include "dolphin.h"
URLNavigatorButton::URLNavigatorButton(int index, URLNavigator* tqparent) : URLNavigatorButton::URLNavigatorButton(int index, URLNavigator* parent) :
URLButton(tqparent), URLButton(parent),
m_index(-1), m_index(-1),
m_listJob(0) m_listJob(0)
{ {
@ -108,7 +108,7 @@ void URLNavigatorButton::drawButton(TQPainter* painter)
foregroundColor = KGlobalSettings::buttonTextColor(); foregroundColor = KGlobalSettings::buttonTextColor();
} }
// dimm the colors if the tqparent view does not have the focus // dimm the colors if the parent view does not have the focus
const DolphinView* parentView = urlNavigator()->dolphinView(); const DolphinView* parentView = urlNavigator()->dolphinView();
const Dolphin& dolphin = Dolphin::mainWin(); const Dolphin& dolphin = Dolphin::mainWin();

@ -49,7 +49,7 @@ class URLNavigatorButton : public URLButton
TQ_OBJECT TQ_OBJECT
public: public:
URLNavigatorButton(int index, URLNavigator* tqparent = 0); URLNavigatorButton(int index, URLNavigator* parent = 0);
virtual ~URLNavigatorButton(); virtual ~URLNavigatorButton();
void setIndex(int index); void setIndex(int index);
int index() const; int index() const;

@ -27,15 +27,15 @@
#include "iconsviewsettingspage.h" #include "iconsviewsettingspage.h"
#include "detailsviewsettingspage.h" #include "detailsviewsettingspage.h"
ViewSettingsPage::ViewSettingsPage(TQWidget *tqparent) : ViewSettingsPage::ViewSettingsPage(TQWidget *parent) :
SettingsPageBase(tqparent), SettingsPageBase(parent),
m_iconsPage(0), m_iconsPage(0),
m_detailsPage(0), m_detailsPage(0),
m_previewsPage(0) m_previewsPage(0)
{ {
TQVBoxLayout* topLayout = new TQVBoxLayout(tqparent, 0, KDialog::spacingHint()); TQVBoxLayout* topLayout = new TQVBoxLayout(parent, 0, KDialog::spacingHint());
TQTabWidget* tabWidget = new TQTabWidget(tqparent); TQTabWidget* tabWidget = new TQTabWidget(parent);
// initialize 'Icons' tab // initialize 'Icons' tab
m_iconsPage = new IconsViewSettingsPage(DolphinIconsView::Icons, tabWidget); m_iconsPage = new IconsViewSettingsPage(DolphinIconsView::Icons, tabWidget);

@ -40,7 +40,7 @@ class ViewSettingsPage : public SettingsPageBase
TQ_OBJECT TQ_OBJECT
public: public:
ViewSettingsPage(TQWidget* tqparent); ViewSettingsPage(TQWidget* parent);
virtual ~ViewSettingsPage(); virtual ~ViewSettingsPage();

Loading…
Cancel
Save