Rename obsolete tq methods to standard names

pull/1/head
Timothy Pearson 13 years ago
parent b651b3b01b
commit 6092f8e607

@ -38,11 +38,11 @@
BookmarksSidebarPage::BookmarksSidebarPage(TQWidget* parent) : BookmarksSidebarPage::BookmarksSidebarPage(TQWidget* parent) :
SidebarPage(parent) SidebarPage(parent)
{ {
TQVBoxLayout* tqlayout = new TQVBoxLayout(this); TQVBoxLayout* layout = new TQVBoxLayout(this);
m_bookmarksList = new BookmarksListBox(this); m_bookmarksList = new BookmarksListBox(this);
m_bookmarksList->setPaletteBackgroundColor(colorGroup().background()); m_bookmarksList->setPaletteBackgroundColor(colorGroup().background());
tqlayout->addWidget(m_bookmarksList); layout->addWidget(m_bookmarksList);
connect(m_bookmarksList, TQT_SIGNAL(mouseButtonClicked(int, TQListBoxItem*, const TQPoint&)), connect(m_bookmarksList, TQT_SIGNAL(mouseButtonClicked(int, TQListBoxItem*, const TQPoint&)),
this, TQT_SLOT(slotMouseButtonClicked(int, TQListBoxItem*))); this, TQT_SLOT(slotMouseButtonClicked(int, TQListBoxItem*)));
connect(m_bookmarksList, TQT_SIGNAL(contextMenuRequested(TQListBoxItem*, const TQPoint&)), connect(m_bookmarksList, TQT_SIGNAL(contextMenuRequested(TQListBoxItem*, const TQPoint&)),

@ -115,7 +115,7 @@ DetailsViewSettingsPage::DetailsViewSettingsPage(TQWidget *parent) :
m_fontSizeBox->setValue(settings->fontSize()); m_fontSizeBox->setValue(settings->fontSize());
// Add a dummy widget with no restriction regarding // Add a dummy widget with no restriction regarding
// a vertical resizing. This assures that the dialog tqlayout // a vertical resizing. This assures that the dialog layout
// is not stretched vertically. // is not stretched vertically.
new TQWidget(this); new TQWidget(this);
} }

@ -642,7 +642,7 @@ void Dolphin::cut()
m_clipboardContainsCutData = true; m_clipboardContainsCutData = true;
TQDragObject* data = new KURLDrag(m_activeView->selectedURLs(), TQDragObject* data = new KURLDrag(m_activeView->selectedURLs(),
widget()); widget());
TQApplication::tqclipboard()->setData(data); TQApplication::clipboard()->setData(data);
} }
void Dolphin::copy() void Dolphin::copy()
@ -650,12 +650,12 @@ void Dolphin::copy()
m_clipboardContainsCutData = false; m_clipboardContainsCutData = false;
TQDragObject* data = new KURLDrag(m_activeView->selectedURLs(), TQDragObject* data = new KURLDrag(m_activeView->selectedURLs(),
widget()); widget());
TQApplication::tqclipboard()->setData(data); TQApplication::clipboard()->setData(data);
} }
void Dolphin::paste() void Dolphin::paste()
{ {
TQClipboard* clipboard = TQApplication::tqclipboard(); TQClipboard* clipboard = TQApplication::clipboard();
TQMimeSource* data = clipboard->data(); TQMimeSource* data = clipboard->data();
if (!KURLDrag::canDecode(data)) { if (!KURLDrag::canDecode(data)) {
return; return;
@ -703,7 +703,7 @@ void Dolphin::updatePasteAction()
} }
TQString text(i18n("Paste")); TQString text(i18n("Paste"));
TQClipboard* clipboard = TQApplication::tqclipboard(); TQClipboard* clipboard = TQApplication::clipboard();
TQMimeSource* data = clipboard->data(); TQMimeSource* data = clipboard->data();
if (KURLDrag::canDecode(data)) { if (KURLDrag::canDecode(data)) {
pasteAction->setEnabled(true); pasteAction->setEnabled(true);
@ -1144,7 +1144,7 @@ void Dolphin::init()
stateChanged("new_file"); stateChanged("new_file");
setAutoSaveSettings(); setAutoSaveSettings();
TQClipboard* clipboard = TQApplication::tqclipboard(); TQClipboard* clipboard = TQApplication::clipboard();
connect(clipboard, TQT_SIGNAL(dataChanged()), connect(clipboard, TQT_SIGNAL(dataChanged()),
this, TQT_SLOT(updatePasteAction())); this, TQT_SLOT(updatePasteAction()));
updatePasteAction(); updatePasteAction();

@ -78,7 +78,7 @@ DolphinDetailsView::DolphinDetailsView(DolphinView* parent) :
connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const KURL::List&, const KURL&)), connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const KURL::List&, const KURL&)),
parent, 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::clipboard();
connect(clipboard, TQT_SIGNAL(dataChanged()), connect(clipboard, TQT_SIGNAL(dataChanged()),
this, TQT_SLOT(slotUpdateDisabledItems())); this, TQT_SLOT(slotUpdateDisabledItems()));
@ -465,7 +465,7 @@ void DolphinDetailsView::drawRubber()
TQPoint point(m_rubber->x(), m_rubber->y()); TQPoint point(m_rubber->x(), m_rubber->y());
point = contentsToViewport(point); point = contentsToViewport(point);
tqstyle().tqdrawPrimitive(TQStyle::PE_FocusRect, &p, style().tqdrawPrimitive(TQStyle::PE_FocusRect, &p,
TQRect(point.x(), point.y(), m_rubber->width(), m_rubber->height()), TQRect(point.x(), point.y(), m_rubber->width(), m_rubber->height()),
colorGroup(), TQStyle::Style_Default, colorGroup().base()); colorGroup(), TQStyle::Style_Default, colorGroup().base());
p.end(); p.end();

@ -64,7 +64,7 @@ DolphinIconsView::DolphinIconsView(DolphinView* parent, LayoutMode layoutMode) :
connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const KURL::List&, const KURL&)), connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const KURL::List&, const KURL&)),
parent, 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::clipboard();
connect(clipboard, TQT_SIGNAL(dataChanged()), connect(clipboard, TQT_SIGNAL(dataChanged()),
this, TQT_SLOT(slotUpdateDisabledItems())); this, TQT_SLOT(slotUpdateDisabledItems()));

@ -83,7 +83,7 @@ public:
public slots: public slots:
/** /**
* Bypass a tqlayout issue in KFileIconView in combination with previews. * Bypass a layout issue in KFileIconView in combination with previews.
* @see KFileIconView::arrangeItemsInGrid * @see KFileIconView::arrangeItemsInGrid
*/ */
virtual void arrangeItemsInGrid(bool updated = true); virtual void arrangeItemsInGrid(bool updated = true);

@ -30,7 +30,7 @@
* @brief Contains the settings for the icons view. * @brief Contains the settings for the icons view.
* *
* The following properties are stored: * The following properties are stored:
* - tqlayout mode (icons or previews) * - layout mode (icons or previews)
* - icon size * - icon size
* - preview size * - preview size
* - grid width, height and spacing * - grid width, height and spacing

@ -38,21 +38,21 @@ FilterBar::FilterBar(TQWidget *parent, const char *name) :
TQVBoxLayout* foo = new TQVBoxLayout(this); TQVBoxLayout* foo = new TQVBoxLayout(this);
foo->addSpacing(gap); foo->addSpacing(gap);
TQHBoxLayout* tqlayout = new TQHBoxLayout(foo); TQHBoxLayout* layout = new TQHBoxLayout(foo);
tqlayout->addSpacing(gap); layout->addSpacing(gap);
m_filter = new TQLabel(i18n("Filter:"), this); m_filter = new TQLabel(i18n("Filter:"), this);
tqlayout->addWidget(m_filter); layout->addWidget(m_filter);
tqlayout->addSpacing(KDialog::spacingHint()); layout->addSpacing(KDialog::spacingHint());
m_filterInput = new KLineEdit(this); m_filterInput = new KLineEdit(this);
tqlayout->addWidget(m_filterInput); layout->addWidget(m_filterInput);
m_close = new KPushButton(this); m_close = new KPushButton(this);
m_close->setIconSet(SmallIcon("fileclose")); m_close->setIconSet(SmallIcon("fileclose"));
m_close->setFlat(true); m_close->setFlat(true);
tqlayout->addWidget(m_close); layout->addWidget(m_close);
tqlayout->addSpacing(gap); layout->addSpacing(gap);
connect(m_filterInput, TQT_SIGNAL(textChanged(const TQString&)), connect(m_filterInput, TQT_SIGNAL(textChanged(const TQString&)),
this, TQT_SIGNAL(signalFilterChanged(const TQString&))); this, TQT_SIGNAL(signalFilterChanged(const TQString&)));

@ -112,7 +112,7 @@ GeneralSettingsPage::GeneralSettingsPage(TQWidget* parent) :
m_saveView->setChecked(settings.isSaveView()); m_saveView->setChecked(settings.isSaveView());
// Add a dummy widget with no restriction regarding // Add a dummy widget with no restriction regarding
// a vertical resizing. This assures that the dialog tqlayout // a vertical resizing. This assures that the dialog layout
// is not stretched vertically. // is not stretched vertically.
new TQWidget(vBox); new TQWidget(vBox);

@ -153,7 +153,7 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode,
m_gridSpacingBox->setCurrentItem((settings->gridSpacing() - GRID_SPACING_BASE) / GRID_SPACING_INC); m_gridSpacingBox->setCurrentItem((settings->gridSpacing() - GRID_SPACING_BASE) / GRID_SPACING_INC);
// Add a dummy widget with no restriction regarding // Add a dummy widget with no restriction regarding
// a vertical resizing. This assures that the dialog tqlayout // a vertical resizing. This assures that the dialog layout
// is not stretched vertically. // is not stretched vertically.
new TQWidget(this); new TQWidget(this);

@ -63,8 +63,8 @@ InfoSidebarPage::InfoSidebarPage(TQWidget* parent) :
connect(m_timer, TQT_SIGNAL(timeout()), connect(m_timer, TQT_SIGNAL(timeout()),
this, TQT_SLOT(slotTimeout())); this, TQT_SLOT(slotTimeout()));
TQVBoxLayout* tqlayout = new TQVBoxLayout(this); TQVBoxLayout* layout = new TQVBoxLayout(this);
tqlayout->setSpacing(spacing); layout->setSpacing(spacing);
// preview // preview
m_preview = new PixmapViewer(this); m_preview = new PixmapViewer(this);
@ -97,14 +97,14 @@ InfoSidebarPage::InfoSidebarPage(TQWidget* parent) :
// This assures that information is always top aligned. // This assures that information is always top aligned.
TQWidget* dummy = new TQWidget(this); TQWidget* dummy = new TQWidget(this);
tqlayout->addItem(new TQSpacerItem(spacing, spacing, TQSizePolicy::Preferred, TQSizePolicy::Fixed)); layout->addItem(new TQSpacerItem(spacing, spacing, TQSizePolicy::Preferred, TQSizePolicy::Fixed));
tqlayout->addWidget(m_preview); layout->addWidget(m_preview);
tqlayout->addWidget(m_name); layout->addWidget(m_name);
tqlayout->addWidget(sep1); layout->addWidget(sep1);
tqlayout->addWidget(m_infoGrid); layout->addWidget(m_infoGrid);
tqlayout->addWidget(sep2); layout->addWidget(sep2);
tqlayout->addWidget(m_actionBox); layout->addWidget(m_actionBox);
tqlayout->addWidget(dummy); layout->addWidget(dummy);
connect(&Dolphin::mainWin(), TQT_SIGNAL(selectionChanged()), connect(&Dolphin::mainWin(), TQT_SIGNAL(selectionChanged()),
this, TQT_SLOT(showItemInfo())); this, TQT_SLOT(showItemInfo()));

@ -141,7 +141,7 @@ void ItemEffectsManager::updateDisabledItems()
return; return;
} }
TQClipboard* clipboard = TQApplication::tqclipboard(); TQClipboard* clipboard = TQApplication::clipboard();
TQMimeSource* data = clipboard->data(); TQMimeSource* data = clipboard->data();
if (!KURLDrag::canDecode(data)) { if (!KURLDrag::canDecode(data)) {
return; return;

@ -42,16 +42,16 @@ leftSidebar::leftSidebar(TQWidget* parent) :
TQWidget(parent), TQWidget(parent),
m_pagesSelector(0), m_pagesSelector(0),
m_page(0), m_page(0),
m_tqlayout(0) m_layout(0)
{ {
m_tqlayout = new TQVBoxLayout(this); m_layout = new TQVBoxLayout(this);
m_pagesSelector = new TQComboBox(this); m_pagesSelector = new TQComboBox(this);
m_pagesSelector->insertItem(i18n("Bookmarks")); m_pagesSelector->insertItem(i18n("Bookmarks"));
m_pagesSelector->insertItem(i18n("Information")); m_pagesSelector->insertItem(i18n("Information"));
// Assure that the combo box has the same height as the URL navigator for // Assure that the combo box has the same height as the URL navigator for
// a clean tqlayout. // a clean layout.
// TODO: the following 2 lines have been copied from the URLNavigator // TODO: the following 2 lines have been copied from the URLNavigator
// constructor (-> provide a shared height setting?) // constructor (-> provide a shared height setting?)
//TQFontMetrics fontMetrics(font()); //TQFontMetrics fontMetrics(font());
@ -61,7 +61,7 @@ leftSidebar::leftSidebar(TQWidget* parent) :
leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar();
const int selectedIndex = indexForName(settings->selectedPage()); const int selectedIndex = indexForName(settings->selectedPage());
m_pagesSelector->setCurrentItem(selectedIndex); m_pagesSelector->setCurrentItem(selectedIndex);
m_tqlayout->addWidget(m_pagesSelector); m_layout->addWidget(m_pagesSelector);
createPage(selectedIndex); createPage(selectedIndex);
@ -95,7 +95,7 @@ void leftSidebar::createPage(int index)
default: break; default: break;
} }
m_tqlayout->addWidget(m_page); m_layout->addWidget(m_page);
m_page->show(); m_page->show();
leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar();
@ -118,16 +118,16 @@ rightSidebar::rightSidebar(TQWidget* parent) :
TQWidget(parent), TQWidget(parent),
m_pagesSelector(0), m_pagesSelector(0),
m_page(0), m_page(0),
m_tqlayout(0) m_layout(0)
{ {
m_tqlayout = new TQVBoxLayout(this); m_layout = new TQVBoxLayout(this);
m_pagesSelector = new TQComboBox(this); m_pagesSelector = new TQComboBox(this);
m_pagesSelector->insertItem(i18n("Bookmarks")); m_pagesSelector->insertItem(i18n("Bookmarks"));
m_pagesSelector->insertItem(i18n("Information")); m_pagesSelector->insertItem(i18n("Information"));
// Assure that the combo box has the same height as the URL navigator for // Assure that the combo box has the same height as the URL navigator for
// a clean tqlayout. // a clean layout.
// TODO: the following 2 lines have been copied from the URLNavigator // TODO: the following 2 lines have been copied from the URLNavigator
// constructor (-> provide a shared height setting?) // constructor (-> provide a shared height setting?)
TQFontMetrics fontMetrics(font()); TQFontMetrics fontMetrics(font());
@ -136,7 +136,7 @@ rightSidebar::rightSidebar(TQWidget* parent) :
rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar();
const int selectedIndex = indexForName(settings->selectedPage()); const int selectedIndex = indexForName(settings->selectedPage());
m_pagesSelector->setCurrentItem(selectedIndex); m_pagesSelector->setCurrentItem(selectedIndex);
m_tqlayout->addWidget(m_pagesSelector); m_layout->addWidget(m_pagesSelector);
createPage(selectedIndex); createPage(selectedIndex);
@ -170,7 +170,7 @@ void rightSidebar::createPage(int index)
default: break; default: break;
} }
m_tqlayout->addWidget(m_page); m_layout->addWidget(m_page);
m_page->show(); m_page->show();
rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar();

@ -57,7 +57,7 @@ class leftSidebar : public TQWidget
TQComboBox* m_pagesSelector; TQComboBox* m_pagesSelector;
SidebarPage* m_page; SidebarPage* m_page;
TQVBoxLayout* m_tqlayout; TQVBoxLayout* m_layout;
}; };
class rightSidebar : public TQWidget class rightSidebar : public TQWidget
@ -86,7 +86,7 @@ class rightSidebar : public TQWidget
TQComboBox* m_pagesSelector; TQComboBox* m_pagesSelector;
SidebarPage* m_page; SidebarPage* m_page;
TQVBoxLayout* m_tqlayout; TQVBoxLayout* m_layout;
}; };
#endif // _SIDEBARS_H_ #endif // _SIDEBARS_H_

Loading…
Cancel
Save