diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:55:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:55:43 -0600 |
commit | b45817ccac7985d286c754b95f40eda5e105efda (patch) | |
tree | 428da987d342b841c1b05adb50cfc12b45b40a14 | |
parent | 59d9dbf810de71334e1173fa7dda59209c10032c (diff) | |
download | dolphin-b45817ccac7985d286c754b95f40eda5e105efda.tar.gz dolphin-b45817ccac7985d286c754b95f40eda5e105efda.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 59d9dbf810de71334e1173fa7dda59209c10032c.
32 files changed, 159 insertions, 159 deletions
diff --git a/src/bookmarkselector.cpp b/src/bookmarkselector.cpp index 7272aac..1e996a1 100644 --- a/src/bookmarkselector.cpp +++ b/src/bookmarkselector.cpp @@ -132,7 +132,7 @@ void BookmarkSelector::drawButton(TQPainter* painter) foregroundColor = KGlobalSettings::highlightedTextColor(); } else { - backgroundColor = colorGroup().background(); + backgroundColor = tqcolorGroup().background(); foregroundColor = KGlobalSettings::buttonTextColor(); } @@ -142,7 +142,7 @@ void BookmarkSelector::drawButton(TQPainter* painter) const bool isActive = (dolphin.activeView() == parentView); if (!isActive) { - TQColor dimmColor(colorGroup().background()); + TQColor dimmColor(tqcolorGroup().background()); foregroundColor = mixColors(foregroundColor, dimmColor); if (isHighlighted) { backgroundColor = mixColors(backgroundColor, dimmColor); diff --git a/src/bookmarkssettingspage.cpp b/src/bookmarkssettingspage.cpp index 57e4721..adcb467 100644 --- a/src/bookmarkssettingspage.cpp +++ b/src/bookmarkssettingspage.cpp @@ -22,7 +22,7 @@ #include <assert.h> -#include <layout.h> +#include <tqlayout.h> #include <tqlabel.h> #include <tqlineedit.h> #include <tqvbox.h> @@ -49,9 +49,9 @@ BookmarksSettingsPage::BookmarksSettingsPage(TQWidget*parent) : const int spacing = KDialog::spacingHint(); TQHBox* hBox = new TQHBox(parent); - hBox->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); + hBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); hBox->setSpacing(spacing); - hBox->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Ignored); + hBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Ignored); m_listView = new KListView(hBox); m_listView->addColumn(i18n("Icon")); @@ -76,27 +76,27 @@ BookmarksSettingsPage::BookmarksSettingsPage(TQWidget*parent) : m_addButton = new KPushButton(i18n("Add..."), buttonBox); connect(m_addButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddButtonClicked())); - m_addButton->setSizePolicy(buttonSizePolicy); + m_addButton->tqsetSizePolicy(buttonSizePolicy); m_editButton = new KPushButton(i18n("Edit..."), buttonBox); connect(m_editButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditButtonClicked())); - m_editButton->setSizePolicy(buttonSizePolicy); + m_editButton->tqsetSizePolicy(buttonSizePolicy); m_removeButton = new KPushButton(i18n("Remove"), buttonBox); connect(m_removeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRemoveButtonClicked())); - m_removeButton->setSizePolicy(buttonSizePolicy); + m_removeButton->tqsetSizePolicy(buttonSizePolicy); m_moveUpButton = new KPushButton(i18n("Move Up"), buttonBox); connect(m_moveUpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMoveUpButtonClicked())); - m_moveUpButton->setSizePolicy(buttonSizePolicy); + m_moveUpButton->tqsetSizePolicy(buttonSizePolicy); m_moveDownButton = new KPushButton(i18n("Move Down"), buttonBox); connect(m_moveDownButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMoveDownButtonClicked())); - m_moveDownButton->setSizePolicy(buttonSizePolicy); + m_moveDownButton->tqsetSizePolicy(buttonSizePolicy); // Add a dummy widget with no restriction regarding a vertical resizing. // This assures that the spacing between the buttons is not increased. diff --git a/src/bookmarkssidebarpage.cpp b/src/bookmarkssidebarpage.cpp index bb6576a..af39d7e 100644 --- a/src/bookmarkssidebarpage.cpp +++ b/src/bookmarkssidebarpage.cpp @@ -20,7 +20,7 @@ #include "bookmarkssidebarpage.h" #include <tqlistbox.h> -#include <layout.h> +#include <tqlayout.h> #include <tqpainter.h> #include <assert.h> #include <tqpopupmenu.h> @@ -38,11 +38,11 @@ BookmarksSidebarPage::BookmarksSidebarPage(TQWidget* parent) : SidebarPage(parent) { - TQVBoxLayout* layout = new TQVBoxLayout(this); + TQVBoxLayout* tqlayout = new TQVBoxLayout(this); m_bookmarksList = new BookmarksListBox(this); - m_bookmarksList->setPaletteBackgroundColor(colorGroup().background()); + m_bookmarksList->setPaletteBackgroundColor(tqcolorGroup().background()); - layout->addWidget(m_bookmarksList); + tqlayout->addWidget(m_bookmarksList); connect(m_bookmarksList, TQT_SIGNAL(mouseButtonClicked(int, TQListBoxItem*, const TQPoint&)), this, TQT_SLOT(slotMouseButtonClicked(int, TQListBoxItem*))); connect(m_bookmarksList, TQT_SIGNAL(contextMenuRequested(TQListBoxItem*, const TQPoint&)), diff --git a/src/detailsviewsettingspage.cpp b/src/detailsviewsettingspage.cpp index f5e2bd7..6aa4855 100644 --- a/src/detailsviewsettingspage.cpp +++ b/src/detailsviewsettingspage.cpp @@ -58,7 +58,7 @@ DetailsViewSettingsPage::DetailsViewSettingsPage(TQWidget *parent) : // create "Columns" properties TQGroupBox* columnsGroup = new TQGroupBox(4, Qt::Vertical, i18n("Columns"), this); - columnsGroup->setSizePolicy(sizePolicy); + columnsGroup->tqsetSizePolicy(sizePolicy); columnsGroup->setMargin(margin); TQHBox* visibleColumnsLayout = new TQHBox(columnsGroup); @@ -76,7 +76,7 @@ DetailsViewSettingsPage::DetailsViewSettingsPage(TQWidget *parent) : // Create "Icon" properties TQButtonGroup* iconSizeGroup = new TQButtonGroup(3, Qt::Horizontal, i18n("Icon Size"), this); - iconSizeGroup->setSizePolicy(sizePolicy); + iconSizeGroup->tqsetSizePolicy(sizePolicy); iconSizeGroup->setMargin(margin); m_smallIconSize = new TQRadioButton(i18n("Small"), iconSizeGroup); m_mediumIconSize = new TQRadioButton(i18n("Medium"), iconSizeGroup); @@ -103,7 +103,7 @@ DetailsViewSettingsPage::DetailsViewSettingsPage(TQWidget *parent) : // create "Text" properties TQGroupBox* textGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Text"), this); - textGroup->setSizePolicy(sizePolicy); + textGroup->tqsetSizePolicy(sizePolicy); textGroup->setMargin(margin); new TQLabel(i18n("Font family:"), textGroup); @@ -115,7 +115,7 @@ DetailsViewSettingsPage::DetailsViewSettingsPage(TQWidget *parent) : m_fontSizeBox->setValue(settings->fontSize()); // Add a dummy widget with no restriction regarding - // a vertical resizing. This assures that the dialog layout + // a vertical resizing. This assures that the dialog tqlayout // is not stretched vertically. new TQWidget(this); } diff --git a/src/dolphin.cpp b/src/dolphin.cpp index cdeb847..2006089 100644 --- a/src/dolphin.cpp +++ b/src/dolphin.cpp @@ -52,7 +52,7 @@ #include <kstandarddirs.h> #include <krun.h> -#include <clipboard.h> +#include <tqclipboard.h> #include <tqdragobject.h> #include "urlnavigator.h" @@ -395,7 +395,7 @@ void Dolphin::createFolder() // TODO: provide message type hint if (ok) { - statusBar->setMessage(i18n("Created folder %1.").arg(url.path()), + statusBar->setMessage(i18n("Created folder %1.").tqarg(url.path()), DolphinStatusBar::OperationCompleted); DolphinCommand command(DolphinCommand::CreateFolder, KURL::List(), url); @@ -405,11 +405,11 @@ void Dolphin::createFolder() // Creating of the folder has been failed. Check whether the creating // has been failed because a folder with the same name exists... if (KIO::NetAccess::exists(url, true, this)) { - statusBar->setMessage(i18n("A folder named %1 already exists.").arg(url.path()), + statusBar->setMessage(i18n("A folder named %1 already exists.").tqarg(url.path()), DolphinStatusBar::Error); } else { - statusBar->setMessage(i18n("Creating of folder %1 failed.").arg(url.path()), + statusBar->setMessage(i18n("Creating of folder %1 failed.").tqarg(url.path()), DolphinStatusBar::Error); } @@ -490,7 +490,7 @@ void Dolphin::createFile() const TQString destPath(viewURL.prettyURL() + "/" + KIO::encodeFileName(name)); const KURL destURL(destPath); if (KIO::NetAccess::exists(destURL, false, this)) { - statusBar->setMessage(i18n("A file named %1 already exists.").arg(name), + statusBar->setMessage(i18n("A file named %1 already exists.").tqarg(name), DolphinStatusBar::Error); return; } @@ -500,7 +500,7 @@ void Dolphin::createFile() KIO::CopyJob* job = KIO::copyAs(sourceURL, destURL); job->setDefaultPermissions(true); if (KIO::NetAccess::synchronousRun(job, this)) { - statusBar->setMessage(i18n("Created file %1.").arg(name), + statusBar->setMessage(i18n("Created file %1.").tqarg(name), DolphinStatusBar::OperationCompleted); KURL::List list; @@ -510,7 +510,7 @@ void Dolphin::createFile() } else { - statusBar->setMessage(i18n("Creating of file %1 failed.").arg(name), + statusBar->setMessage(i18n("Creating of file %1 failed.").tqarg(name), DolphinStatusBar::Error); } } @@ -539,11 +539,11 @@ void Dolphin::deleteItems() TQString text; if (itemCount > 1) { - text = i18n("Do you really want to delete the %1 selected items?").arg(itemCount); + text = i18n("Do you really want to delete the %1 selected items?").tqarg(itemCount); } else { const KURL& url = list.first(); - text = i18n("Do you really want to delete '%1'?").arg(url.fileName()); + text = i18n("Do you really want to delete '%1'?").tqarg(url.fileName()); } const bool del = KMessageBox::warningContinueCancel(this, @@ -642,7 +642,7 @@ void Dolphin::cut() m_clipboardContainsCutData = true; TQDragObject* data = new KURLDrag(m_activeView->selectedURLs(), widget()); - TQApplication::clipboard()->setData(data); + TQApplication::tqclipboard()->setData(data); } void Dolphin::copy() @@ -650,12 +650,12 @@ void Dolphin::copy() m_clipboardContainsCutData = false; TQDragObject* data = new KURLDrag(m_activeView->selectedURLs(), widget()); - TQApplication::clipboard()->setData(data); + TQApplication::tqclipboard()->setData(data); } void Dolphin::paste() { - TQClipboard* clipboard = TQApplication::clipboard(); + TQClipboard* clipboard = TQApplication::tqclipboard(); TQMimeSource* data = clipboard->data(); if (!KURLDrag::canDecode(data)) { return; @@ -703,7 +703,7 @@ void Dolphin::updatePasteAction() } TQString text(i18n("Paste")); - TQClipboard* clipboard = TQApplication::clipboard(); + TQClipboard* clipboard = TQApplication::tqclipboard(); TQMimeSource* data = clipboard->data(); if (KURLDrag::canDecode(data)) { pasteAction->setEnabled(true); @@ -715,7 +715,7 @@ void Dolphin::updatePasteAction() pasteAction->setText(i18n("Paste 1 File")); } else { - pasteAction->setText(i18n("Paste %1 Files").arg(count)); + pasteAction->setText(i18n("Paste %1 Files").tqarg(count)); } } else { @@ -1144,7 +1144,7 @@ void Dolphin::init() stateChanged("new_file"); setAutoSaveSettings(); - TQClipboard* clipboard = TQApplication::clipboard(); + TQClipboard* clipboard = TQApplication::tqclipboard(); connect(clipboard, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(updatePasteAction())); updatePasteAction(); diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 8fd25e6..03282fb 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -24,7 +24,7 @@ #include <tqpainter.h> #include <tqobjectlist.h> #include <tqheader.h> -#include <clipboard.h> +#include <tqclipboard.h> #include <tqpainter.h> #include <klocale.h> #include <kglobalsettings.h> @@ -78,7 +78,7 @@ DolphinDetailsView::DolphinDetailsView(DolphinView* parent) : connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const KURL::List&, const KURL&)), parent, TQT_SLOT(slotURLListDropped(TQDropEvent*, const KURL::List&, const KURL&))); - TQClipboard* clipboard = TQApplication::clipboard(); + TQClipboard* clipboard = TQApplication::tqclipboard(); connect(clipboard, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotUpdateDisabledItems())); @@ -441,7 +441,7 @@ void DolphinDetailsView::paintEmptyArea(TQPainter* painter, const TQRect& rect) KFileDetailView::paintEmptyArea(painter, rect); } else { - const TQBrush brush(colorGroup().background()); + const TQBrush brush(tqcolorGroup().background()); painter->fillRect(rect, brush); } } @@ -467,7 +467,7 @@ void DolphinDetailsView::drawRubber() point = contentsToViewport(point); tqstyle().tqdrawPrimitive(TQStyle::PE_FocusRect, &p, TQRect(point.x(), point.y(), m_rubber->width(), m_rubber->height()), - colorGroup(), TQStyle::Style_Default, colorGroup().base()); + tqcolorGroup(), TQStyle::Style_Default, tqcolorGroup().base()); p.end(); } @@ -489,7 +489,7 @@ void DolphinDetailsView::slotActivationUpdate() update(); // TODO: there must be a simpler way to say - // "update all children" + // "update all tqchildren" const TQObjectList list = childrenListObject(); if (list.isEmpty()) { return; @@ -553,7 +553,7 @@ void DolphinDetailsView::slotAutoScroll() // select all items which intersect with the rubber, deselect all others bool bottomReached = false; while ((item != 0) && !bottomReached) { - TQRect rect(itemRect(item)); + TQRect rect(tqitemRect(item)); rect.setWidth(filenameWidth(item)); rect = TQRect(viewportToContents(rect.topLeft()), viewportToContents(rect.bottomRight())); @@ -710,10 +710,10 @@ DolphinDetailsView::DolphinListViewItem::~DolphinListViewItem() } void DolphinDetailsView::DolphinListViewItem::paintCell(TQPainter* painter, - const TQColorGroup& colorGroup, + const TQColorGroup& tqcolorGroup, int column, int cellWidth, - int alignment) + int tqalignment) { const TQListView* view = listView(); const bool isActive = TQT_BASE_OBJECT(view->parent()) == TQT_BASE_OBJECT(Dolphin::mainWin().activeView()); @@ -721,30 +721,30 @@ void DolphinDetailsView::DolphinListViewItem::paintCell(TQPainter* painter, // 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 // should be shown as selected. - TQColorGroup defaultColorGroup(colorGroup); - const TQColor highlightColor(isActive ? backgroundColor(column) : view->colorGroup().background()); + TQColorGroup defaultColorGroup(tqcolorGroup); + const TQColor highlightColor(isActive ? backgroundColor(column) : view->tqcolorGroup().background()); defaultColorGroup.setColor(TQColorGroup::Highlight , highlightColor); - defaultColorGroup.setColor(TQColorGroup::HighlightedText, colorGroup.color(TQColorGroup::Text)); - KFileListViewItem::paintCell(painter, defaultColorGroup, column, cellWidth, alignment); + defaultColorGroup.setColor(TQColorGroup::HighlightedText, tqcolorGroup.color(TQColorGroup::Text)); + KFileListViewItem::paintCell(painter, defaultColorGroup, column, cellWidth, tqalignment); if (column == 0) { // draw the selection only on the first column TQListView* parent = listView(); const int itemWidth = width(parent->fontMetrics(), parent, 0); if (isActive) { - KFileListViewItem::paintCell(painter, colorGroup, column, itemWidth, alignment); + KFileListViewItem::paintCell(painter, tqcolorGroup, column, itemWidth, tqalignment); } else { - TQListViewItem::paintCell(painter, colorGroup, column, itemWidth, alignment); + TQListViewItem::paintCell(painter, tqcolorGroup, column, itemWidth, tqalignment); } } } else { if (isActive) { - KFileListViewItem::paintCell(painter, colorGroup, column, cellWidth, alignment); + KFileListViewItem::paintCell(painter, tqcolorGroup, column, cellWidth, tqalignment); } else { - TQListViewItem::paintCell(painter, colorGroup, column, cellWidth, alignment); + TQListViewItem::paintCell(painter, tqcolorGroup, column, cellWidth, tqalignment); } } @@ -756,7 +756,7 @@ void DolphinDetailsView::DolphinListViewItem::paintCell(TQPainter* painter, } void DolphinDetailsView::DolphinListViewItem::paintFocus(TQPainter* painter, - const TQColorGroup& colorGroup, + const TQColorGroup& tqcolorGroup, const TQRect& rect) { // draw the focus consistently with the selection (see implementation notes @@ -771,7 +771,7 @@ void DolphinDetailsView::DolphinListViewItem::paintFocus(TQPainter* painter, TQRect focusRect(rect); focusRect.setWidth(visibleWidth); - KFileListViewItem::paintFocus(painter, colorGroup, focusRect); + KFileListViewItem::paintFocus(painter, tqcolorGroup, focusRect); } int DolphinDetailsView::filenameWidth(const TQListViewItem* item) const diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h index 8027f06..6b968ed 100644 --- a/src/dolphindetailsview.h +++ b/src/dolphindetailsview.h @@ -190,13 +190,13 @@ private: KFileItem* fileItem); virtual ~DolphinListViewItem(); virtual void paintCell(TQPainter* painter, - const TQColorGroup& colorGroup, + const TQColorGroup& tqcolorGroup, int column, int cellWidth, - int alignment); + int tqalignment); virtual void paintFocus(TQPainter* painter, - const TQColorGroup& colorGroup, + const TQColorGroup& tqcolorGroup, const TQRect& rect); }; diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 63b755e..6c7b9a9 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -25,7 +25,7 @@ #include <tqobjectlist.h> #include <kglobalsettings.h> #include <kurldrag.h> -#include <clipboard.h> +#include <tqclipboard.h> #include <assert.h> #include <kaction.h> #include <kstdaction.h> @@ -64,7 +64,7 @@ DolphinIconsView::DolphinIconsView(DolphinView* parent, LayoutMode layoutMode) : connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const KURL::List&, const KURL&)), parent, TQT_SLOT(slotURLListDropped(TQDropEvent*, const KURL::List&, const KURL&))); - TQClipboard* clipboard = TQApplication::clipboard(); + TQClipboard* clipboard = TQApplication::tqclipboard(); connect(clipboard, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotUpdateDisabledItems())); @@ -293,7 +293,7 @@ void DolphinIconsView::drawBackground(TQPainter* painter, const TQRect& rect) KFileIconView::drawBackground(painter, rect); } else { - const TQBrush brush(colorGroup().background()); + const TQBrush brush(tqcolorGroup().background()); painter->fillRect(0, 0, width(), height(), brush); } } @@ -447,7 +447,7 @@ void DolphinIconsView::slotActivationUpdate() update(); // TODO: there must be a simpler way to say - // "update all children" + // "update all tqchildren" const TQObjectList list = childrenListObject(); if (list.isEmpty()) { return; diff --git a/src/dolphiniconsview.h b/src/dolphiniconsview.h index e64d73d..5ce6d8b 100644 --- a/src/dolphiniconsview.h +++ b/src/dolphiniconsview.h @@ -83,7 +83,7 @@ public: public slots: /** - * Bypass a layout issue in KFileIconView in combination with previews. + * Bypass a tqlayout issue in KFileIconView in combination with previews. * @see KFileIconView::arrangeItemsInGrid */ virtual void arrangeItemsInGrid(bool updated = true); diff --git a/src/dolphiniconsviewsettings.h b/src/dolphiniconsviewsettings.h index 1642117..5c39adf 100644 --- a/src/dolphiniconsviewsettings.h +++ b/src/dolphiniconsviewsettings.h @@ -30,7 +30,7 @@ * @brief Contains the settings for the icons view. * * The following properties are stored: - * - layout mode (icons or previews) + * - tqlayout mode (icons or previews) * - icon size * - preview size * - grid width, height and spacing diff --git a/src/dolphinstatusbar.cpp b/src/dolphinstatusbar.cpp index 543bb47..d07c5d2 100644 --- a/src/dolphinstatusbar.cpp +++ b/src/dolphinstatusbar.cpp @@ -36,7 +36,7 @@ DolphinStatusBar::DolphinStatusBar(DolphinView* parent) : m_progress(100) { m_messageLabel = new StatusBarMessageLabel(this); - m_messageLabel->setSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Fixed); + m_messageLabel->tqsetSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Fixed); m_spaceInfo = new StatusBarSpaceInfo(this); m_spaceInfo->setURL(parent->url()); @@ -51,7 +51,7 @@ DolphinStatusBar::DolphinStatusBar(DolphinView* parent) : connect(m_progressTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotProgressTimer())); - const TQSize size(m_progressBar->sizeHint()); + const TQSize size(m_progressBar->tqsizeHint()); m_progressBar->setMaximumWidth(size.width()); setMinimumHeight(size.height()); m_messageLabel->setMinimumTextHeight(size.height()); diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 7f561a8..647b6fa 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -20,7 +20,7 @@ #include "dolphinview.h" -#include <layout.h> +#include <tqlayout.h> #include <kurl.h> #include <klocale.h> #include <kio/netaccess.h> @@ -248,7 +248,7 @@ void DolphinView::renameSelectedItems() if (destExists) { delete progressIndicator; progressIndicator = 0; - view->statusBar()->setMessage(i18n("Renaming failed (item '%1' already exists).").arg(name), + view->statusBar()->setMessage(i18n("Renaming failed (item '%1' already exists).").tqarg(name), DolphinStatusBar::Error); break; } @@ -575,14 +575,14 @@ void DolphinView::rename(const KURL& source, const TQString& newName) } if (ok) { - m_statusBar->setMessage(i18n("Renamed file '%1' to '%2'.").arg(source.fileName(), dest.fileName()), + m_statusBar->setMessage(i18n("Renamed file '%1' to '%2'.").tqarg(source.fileName(), dest.fileName()), DolphinStatusBar::OperationCompleted); DolphinCommand command(DolphinCommand::Rename, source, dest); UndoManager::instance().addCommand(command); } else { - m_statusBar->setMessage(i18n("Renaming of file '%1' to '%2' failed.").arg(source.fileName(), dest.fileName()), + m_statusBar->setMessage(i18n("Renaming of file '%1' to '%2' failed.").tqarg(source.fileName(), dest.fileName()), DolphinStatusBar::Error); reload(); } @@ -930,7 +930,7 @@ void DolphinView::startDirLister(const KURL& url, bool reload) m_statusBar->setMessage(i18n("The location is empty."), DolphinStatusBar::Error); } else { - m_statusBar->setMessage(i18n("The location '%1' is invalid.").arg(location), + m_statusBar->setMessage(i18n("The location '%1' is invalid.").tqarg(location), DolphinStatusBar::Error); } return; @@ -993,7 +993,7 @@ TQString DolphinView::selectionStatusBarText() const if (fileCount > 0) { const TQString sizeText(KIO::convertSize(byteSize)); - text += i18n("1 File selected (%1)", "%n Files selected (%1)", fileCount).arg(sizeText); + text += i18n("1 File selected (%1)", "%n Files selected (%1)", fileCount).tqarg(sizeText); } return text; diff --git a/src/editbookmarkdialog.cpp b/src/editbookmarkdialog.cpp index 0d6f6a1..3a3f5ca 100644 --- a/src/editbookmarkdialog.cpp +++ b/src/editbookmarkdialog.cpp @@ -23,7 +23,7 @@ #include <klocale.h> #include <tqlineedit.h> #include <tqlabel.h> -#include <layout.h> +#include <tqlayout.h> #include <kiconloader.h> #include <tqpushbutton.h> #include <kurl.h> @@ -72,7 +72,7 @@ EditBookmarkDialog::EditBookmarkDialog(const TQString& title, new TQLabel(i18n("Icon:"), grid); m_iconName = icon; m_iconButton = new TQPushButton(SmallIcon(m_iconName), TQString(), grid); - m_iconButton->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); + m_iconButton->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); connect(m_iconButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectIcon())); @@ -86,13 +86,13 @@ EditBookmarkDialog::EditBookmarkDialog(const TQString& title, new TQLabel(i18n("Location:"), grid); TQHBox* locationBox = new TQHBox(grid); - locationBox->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); + locationBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); locationBox->setSpacing(spacingHint()); m_location = new TQLineEdit(url.prettyURL(), locationBox); m_location->setMinimumWidth(320); TQPushButton* selectLocationButton = new TQPushButton(SmallIcon("folder"), TQString(), locationBox); - selectLocationButton->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); + selectLocationButton->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); connect(selectLocationButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectLocation())); diff --git a/src/filterbar.cpp b/src/filterbar.cpp index 87b5b5d..f34b763 100644 --- a/src/filterbar.cpp +++ b/src/filterbar.cpp @@ -20,7 +20,7 @@ #include "filterbar.h" #include <tqlabel.h> -#include <layout.h> +#include <tqlayout.h> #include <kdialog.h> #include <klocale.h> @@ -38,21 +38,21 @@ FilterBar::FilterBar(TQWidget *parent, const char *name) : TQVBoxLayout* foo = new TQVBoxLayout(this); foo->addSpacing(gap); - TQHBoxLayout* layout = new TQHBoxLayout(foo); - layout->addSpacing(gap); + TQHBoxLayout* tqlayout = new TQHBoxLayout(foo); + tqlayout->addSpacing(gap); m_filter = new TQLabel(i18n("Filter:"), this); - layout->addWidget(m_filter); - layout->addSpacing(KDialog::spacingHint()); + tqlayout->addWidget(m_filter); + tqlayout->addSpacing(KDialog::spacingHint()); m_filterInput = new KLineEdit(this); - layout->addWidget(m_filterInput); + tqlayout->addWidget(m_filterInput); m_close = new KPushButton(this); m_close->setIconSet(SmallIcon("fileclose")); m_close->setFlat(true); - layout->addWidget(m_close); - layout->addSpacing(gap); + tqlayout->addWidget(m_close); + tqlayout->addSpacing(gap); connect(m_filterInput, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SIGNAL(signalFilterChanged(const TQString&))); diff --git a/src/generalsettingspage.cpp b/src/generalsettingspage.cpp index 3af0268..f3fbebb 100644 --- a/src/generalsettingspage.cpp +++ b/src/generalsettingspage.cpp @@ -20,7 +20,7 @@ #include "generalsettingspage.h" -#include <layout.h> +#include <tqlayout.h> #include <kdialog.h> #include <tqlabel.h> #include <tqlineedit.h> @@ -53,18 +53,18 @@ GeneralSettingsPage::GeneralSettingsPage(TQWidget* parent) : DolphinSettings& settings = DolphinSettings::instance(); TQVBox* vBox = new TQVBox(parent); - vBox->setSizePolicy(sizePolicy); + vBox->tqsetSizePolicy(sizePolicy); vBox->setSpacing(spacing); vBox->setMargin(margin); - vBox->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Ignored); + vBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Ignored); // create 'Home URL' editor TQGroupBox* homeGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Home URL"), vBox); - homeGroup->setSizePolicy(sizePolicy); + homeGroup->tqsetSizePolicy(sizePolicy); homeGroup->setMargin(margin); TQHBox* homeURLBox = new TQHBox(homeGroup); - homeURLBox->setSizePolicy(sizePolicy); + homeURLBox->tqsetSizePolicy(sizePolicy); homeURLBox->setSpacing(spacing); new TQLabel(i18n("Location:"), homeURLBox); @@ -75,7 +75,7 @@ GeneralSettingsPage::GeneralSettingsPage(TQWidget* parent) : this, TQT_SLOT(selectHomeURL())); TQHBox* buttonBox = new TQHBox(homeGroup); - buttonBox->setSizePolicy(sizePolicy); + buttonBox->tqsetSizePolicy(sizePolicy); buttonBox->setSpacing(spacing); TQPushButton* useCurrentButton = new TQPushButton(i18n("Use current location"), buttonBox); connect(useCurrentButton, TQT_SIGNAL(clicked()), @@ -86,7 +86,7 @@ GeneralSettingsPage::GeneralSettingsPage(TQWidget* parent) : // create 'Default View Mode' group TQButtonGroup* buttonGroup = new TQButtonGroup(3, Qt::Vertical, i18n("Default View Mode"), vBox); - buttonGroup->setSizePolicy(sizePolicy); + buttonGroup->tqsetSizePolicy(sizePolicy); buttonGroup->setMargin(margin); m_iconsView = new TQRadioButton(i18n("Icons"), buttonGroup); @@ -112,7 +112,7 @@ GeneralSettingsPage::GeneralSettingsPage(TQWidget* parent) : m_saveView->setChecked(settings.isSaveView()); // Add a dummy widget with no restriction regarding - // a vertical resizing. This assures that the dialog layout + // a vertical resizing. This assures that the dialog tqlayout // is not stretched vertically. new TQWidget(vBox); diff --git a/src/iconsviewsettingspage.cpp b/src/iconsviewsettingspage.cpp index 570b961..9271bbb 100644 --- a/src/iconsviewsettingspage.cpp +++ b/src/iconsviewsettingspage.cpp @@ -63,11 +63,11 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, TQHBox* sizesLayout = new TQHBox(this); sizesLayout->setSpacing(spacing); - sizesLayout->setSizePolicy(sizePolicy); + sizesLayout->tqsetSizePolicy(sizePolicy); // create 'Icon Size' group including slider and preview TQGroupBox* iconSizeGroup = new TQGroupBox(2, Qt::Vertical, i18n("Icon Size"), sizesLayout); - iconSizeGroup->setSizePolicy(sizePolicy); + iconSizeGroup->tqsetSizePolicy(sizePolicy); iconSizeGroup->setMargin(margin); const TQColor iconBackgroundColor(KGlobalSettings::baseColor()); @@ -91,7 +91,7 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, if (m_mode == DolphinIconsView::Previews) { // create 'Preview Size' group including slider and preview TQGroupBox* previewSizeGroup = new TQGroupBox(2, Qt::Vertical, i18n("Preview Size"), sizesLayout); - previewSizeGroup->setSizePolicy(sizePolicy); + previewSizeGroup->tqsetSizePolicy(sizePolicy); previewSizeGroup->setMargin(margin); TQHBox* previewSizeVBox = new TQHBox(previewSizeGroup); @@ -113,7 +113,7 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, } TQGroupBox* textGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Text"), this); - textGroup->setSizePolicy(sizePolicy); + textGroup->tqsetSizePolicy(sizePolicy); textGroup->setMargin(margin); new TQLabel(i18n("Font family:"), textGroup); @@ -135,7 +135,7 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, m_textWidthBox->insertItem(i18n("Large")); TQGroupBox* gridGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Grid"), this); - gridGroup->setSizePolicy(sizePolicy); + gridGroup->tqsetSizePolicy(sizePolicy); gridGroup->setMargin(margin); const bool leftToRightArrangement = (settings->arrangement() == TQIconView::LeftToRight); @@ -153,7 +153,7 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, m_gridSpacingBox->setCurrentItem((settings->gridSpacing() - GRID_SPACING_BASE) / GRID_SPACING_INC); // Add a dummy widget with no restriction regarding - // a vertical resizing. This assures that the dialog layout + // a vertical resizing. This assures that the dialog tqlayout // is not stretched vertically. new TQWidget(this); diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index cb8db07..2766e1f 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -20,7 +20,7 @@ #include "infosidebarpage.h" #include <assert.h> -#include <layout.h> +#include <tqlayout.h> #include <tqpixmap.h> #include <tqlabel.h> #include <tqtimer.h> @@ -63,8 +63,8 @@ InfoSidebarPage::InfoSidebarPage(TQWidget* parent) : connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout())); - TQVBoxLayout* layout = new TQVBoxLayout(this); - layout->setSpacing(spacing); + TQVBoxLayout* tqlayout = new TQVBoxLayout(this); + tqlayout->setSpacing(spacing); // preview m_preview = new PixmapViewer(this); @@ -74,37 +74,37 @@ InfoSidebarPage::InfoSidebarPage(TQWidget* parent) : // name m_name = new TQLabel(this); m_name->setTextFormat(TQt::RichText); - m_name->setAlignment(m_name->alignment() | TQt::AlignHCenter); + m_name->tqsetAlignment(m_name->tqalignment() | TQt::AlignHCenter); TQFontMetrics fontMetrics(m_name->font()); m_name->setMinimumHeight(fontMetrics.height() * 3); - m_name->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Maximum); + m_name->tqsetSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Maximum); TQWidget* sep1 = new TQHGroupBox(this); // TODO: check whether default widget exist for this? sep1->setFixedHeight(1); // general information m_infoGrid = new TQGrid(2, this); - m_infoGrid->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); + m_infoGrid->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); TQWidget* sep2 = new TQHGroupBox(this); // TODO: check whether default widget exist for this? sep2->setFixedHeight(1); // actions m_actionBox = new TQVBox(this); - m_actionBox->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); + m_actionBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); // Add a dummy widget with no restriction regarding a vertical resizing. // This assures that information is always top aligned. TQWidget* dummy = new TQWidget(this); - layout->addItem(new TQSpacerItem(spacing, spacing, TQSizePolicy::Preferred, TQSizePolicy::Fixed)); - layout->addWidget(m_preview); - layout->addWidget(m_name); - layout->addWidget(sep1); - layout->addWidget(m_infoGrid); - layout->addWidget(sep2); - layout->addWidget(m_actionBox); - layout->addWidget(dummy); + tqlayout->addItem(new TQSpacerItem(spacing, spacing, TQSizePolicy::Preferred, TQSizePolicy::Fixed)); + tqlayout->addWidget(m_preview); + tqlayout->addWidget(m_name); + tqlayout->addWidget(sep1); + tqlayout->addWidget(m_infoGrid); + tqlayout->addWidget(sep2); + tqlayout->addWidget(m_actionBox); + tqlayout->addWidget(dummy); connect(&Dolphin::mainWin(), TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(showItemInfo())); @@ -388,14 +388,14 @@ void InfoSidebarPage::addInfoLine(const TQString& labelText, const TQString& inf // no labels are available anymore, hence create 2 new ones TQLabel* label = new TQLabel(labelStr, m_infoGrid); label->setTextFormat(TQt::RichText); - label->setAlignment(TQt::AlignRight | + label->tqsetAlignment(TQt::AlignRight | TQt::AlignTop); label->show(); m_infoWidgets.append(label); TQLabel* info = new TQLabel(infoText, m_infoGrid); info->setTextFormat(TQt::RichText); - info->setAlignment(TQt::AlignTop | TQt::WordBreak); + info->tqsetAlignment(TQt::AlignTop | TQt::WordBreak); info->show(); m_infoWidgets.append(info); @@ -406,7 +406,7 @@ void InfoSidebarPage::addInfoLine(const TQString& labelText, const TQString& inf void InfoSidebarPage::insertActions() { // delete all existing action widgets - // TODO: just use children() from TQObject... + // TODO: just use tqchildren() from TQObject... TQPtrListIterator<TQWidget> deleteIter(m_actionWidgets); TQWidget* widget = 0; while ((widget = deleteIter.current()) != 0) { @@ -535,7 +535,7 @@ ServiceButton::ServiceButton(const TQIconSet& icon, m_hover(false), m_index(index) { - setEraseColor(colorGroup().background()); + setEraseColor(tqcolorGroup().background()); setFocusPolicy(TQ_NoFocus); connect(this, TQT_SIGNAL(released()), this, TQT_SLOT(slotReleased())); @@ -557,7 +557,7 @@ void ServiceButton::drawButton(TQPainter* painter) foregroundColor = KGlobalSettings::highlightedTextColor(); } else { - backgroundColor = colorGroup().background(); + backgroundColor = tqcolorGroup().background(); foregroundColor = KGlobalSettings::buttonTextColor(); } diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h index d62318f..d9597b5 100644 --- a/src/infosidebarpage.h +++ b/src/infosidebarpage.h @@ -155,10 +155,10 @@ private: int m_currInfoLineIdx; TQGrid* m_infoGrid; - TQPtrList<TQLabel> m_infoWidgets; // TODO: use children() from TQObject instead + TQPtrList<TQLabel> m_infoWidgets; // TODO: use tqchildren() from TQObject instead TQVBox* m_actionBox; - TQPtrList<TQWidget> m_actionWidgets; // TODO: use children() from TQObject instead + TQPtrList<TQWidget> m_actionWidgets; // TODO: use tqchildren() from TQObject instead TQValueVector<KDEDesktopMimeType::Service> m_actionsVector; }; diff --git a/src/itemeffectsmanager.cpp b/src/itemeffectsmanager.cpp index 9ee77e2..f402f20 100644 --- a/src/itemeffectsmanager.cpp +++ b/src/itemeffectsmanager.cpp @@ -23,7 +23,7 @@ #include <kapplication.h> #include <tqobjectlist.h> #include <kglobalsettings.h> -#include <clipboard.h> +#include <tqclipboard.h> #include <kurldrag.h> #include <klocale.h> @@ -141,7 +141,7 @@ void ItemEffectsManager::updateDisabledItems() return; } - TQClipboard* clipboard = TQApplication::clipboard(); + TQClipboard* clipboard = TQApplication::tqclipboard(); TQMimeSource* data = clipboard->data(); if (!KURLDrag::canDecode(data)) { return; @@ -182,7 +182,7 @@ TQString ItemEffectsManager::statusBarText(KFileItem* fileInfo) const // KFileItem::getStatusBar() returns "MyDocuments/ Folder" as // status bar text for a folder 'MyDocuments'. This is adjusted // to "MyDocuments (Folder)" in Dolphin. - return i18n("%1 (Folder)").arg(fileInfo->name()); + return i18n("%1 (Folder)").tqarg(fileInfo->name()); } return fileInfo->getStatusBarInfo(); diff --git a/src/progressindicator.cpp b/src/progressindicator.cpp index e61025c..9936df5 100644 --- a/src/progressindicator.cpp +++ b/src/progressindicator.cpp @@ -72,7 +72,7 @@ void ProgressIndicator::execOperation() DolphinStatusBar* statusBar = Dolphin::mainWin().activeView()->statusBar(); statusBar->setProgress((m_operationsIndex * 100) / m_operationsCount); kapp->processEvents(); - statusBar->repaint(); + statusBar->tqrepaint(); } } } diff --git a/src/renamedialog.cpp b/src/renamedialog.cpp index a5c19b2..abd3057 100644 --- a/src/renamedialog.cpp +++ b/src/renamedialog.cpp @@ -21,7 +21,7 @@ #include "renamedialog.h" #include <klocale.h> #include <tqlabel.h> -#include <layout.h> +#include <tqlayout.h> #include <tqvbox.h> #include <assert.h> #include <klineedit.h> diff --git a/src/sidebars.cpp b/src/sidebars.cpp index 02f74a0..11f1ca1 100644 --- a/src/sidebars.cpp +++ b/src/sidebars.cpp @@ -20,7 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include <layout.h> +#include <tqlayout.h> #include <tqpixmap.h> #include <kiconloader.h> #include <klocale.h> @@ -42,16 +42,16 @@ leftSidebar::leftSidebar(TQWidget* parent) : TQWidget(parent), m_pagesSelector(0), m_page(0), - m_layout(0) + m_tqlayout(0) { - m_layout = new TQVBoxLayout(this); + m_tqlayout = new TQVBoxLayout(this); m_pagesSelector = new TQComboBox(this); m_pagesSelector->insertItem(i18n("Bookmarks")); m_pagesSelector->insertItem(i18n("Information")); // Assure that the combo box has the same height as the URL navigator for - // a clean layout. + // a clean tqlayout. // TODO: the following 2 lines have been copied from the URLNavigator // constructor (-> provide a shared height setting?) //TQFontMetrics fontMetrics(font()); @@ -61,7 +61,7 @@ leftSidebar::leftSidebar(TQWidget* parent) : leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); const int selectedIndex = indexForName(settings->selectedPage()); m_pagesSelector->setCurrentItem(selectedIndex); - m_layout->addWidget(m_pagesSelector); + m_tqlayout->addWidget(m_pagesSelector); createPage(selectedIndex); @@ -73,9 +73,9 @@ leftSidebar::~leftSidebar() { } -TQSize leftSidebar::sizeHint() const +TQSize leftSidebar::tqsizeHint() const { - TQSize size(TQWidget::sizeHint()); + TQSize size(TQWidget::tqsizeHint()); leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); size.setWidth(settings->width()); @@ -95,7 +95,7 @@ void leftSidebar::createPage(int index) default: break; } - m_layout->addWidget(m_page); + m_tqlayout->addWidget(m_page); m_page->show(); leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); @@ -118,16 +118,16 @@ rightSidebar::rightSidebar(TQWidget* parent) : TQWidget(parent), m_pagesSelector(0), m_page(0), - m_layout(0) + m_tqlayout(0) { - m_layout = new TQVBoxLayout(this); + m_tqlayout = new TQVBoxLayout(this); m_pagesSelector = new TQComboBox(this); m_pagesSelector->insertItem(i18n("Bookmarks")); m_pagesSelector->insertItem(i18n("Information")); // Assure that the combo box has the same height as the URL navigator for - // a clean layout. + // a clean tqlayout. // TODO: the following 2 lines have been copied from the URLNavigator // constructor (-> provide a shared height setting?) TQFontMetrics fontMetrics(font()); @@ -136,7 +136,7 @@ rightSidebar::rightSidebar(TQWidget* parent) : rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); const int selectedIndex = indexForName(settings->selectedPage()); m_pagesSelector->setCurrentItem(selectedIndex); - m_layout->addWidget(m_pagesSelector); + m_tqlayout->addWidget(m_pagesSelector); createPage(selectedIndex); @@ -148,9 +148,9 @@ rightSidebar::~rightSidebar() { } -TQSize rightSidebar::sizeHint() const +TQSize rightSidebar::tqsizeHint() const { - TQSize size(TQWidget::sizeHint()); + TQSize size(TQWidget::tqsizeHint()); rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); size.setWidth(settings->width()); @@ -170,7 +170,7 @@ void rightSidebar::createPage(int index) default: break; } - m_layout->addWidget(m_page); + m_tqlayout->addWidget(m_page); m_page->show(); rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); diff --git a/src/sidebars.h b/src/sidebars.h index e1da72f..7e65f20 100644 --- a/src/sidebars.h +++ b/src/sidebars.h @@ -40,7 +40,7 @@ class leftSidebar : public TQWidget leftSidebar(TQWidget* parent); virtual ~leftSidebar(); - virtual TQSize sizeHint() const; + virtual TQSize tqsizeHint() const; signals: /** @@ -57,7 +57,7 @@ class leftSidebar : public TQWidget TQComboBox* m_pagesSelector; SidebarPage* m_page; - TQVBoxLayout* m_layout; + TQVBoxLayout* m_tqlayout; }; class rightSidebar : public TQWidget @@ -69,7 +69,7 @@ class rightSidebar : public TQWidget rightSidebar(TQWidget* parent); virtual ~rightSidebar(); - virtual TQSize sizeHint() const; + virtual TQSize tqsizeHint() const; signals: /** @@ -86,7 +86,7 @@ class rightSidebar : public TQWidget TQComboBox* m_pagesSelector; SidebarPage* m_page; - TQVBoxLayout* m_layout; + TQVBoxLayout* m_tqlayout; }; #endif // _SIDEBARS_H_ diff --git a/src/statusbarmessagelabel.cpp b/src/statusbarmessagelabel.cpp index c79fc44..11f74cc 100644 --- a/src/statusbarmessagelabel.cpp +++ b/src/statusbarmessagelabel.cpp @@ -108,7 +108,7 @@ void StatusBarMessageLabel::paintEvent(TQPaintEvent* /* event */) TQPainter painter(&buffer); // draw background - TQColor backgroundColor(colorGroup().background()); + TQColor backgroundColor(tqcolorGroup().background()); TQColor foregroundColor(KGlobalSettings::textColor()); if (m_illumination > 0) { backgroundColor = mixColors(backgroundColor, TQColor(255, 255, 64), m_illumination); diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp index 16eb36b..87feaa3 100644 --- a/src/statusbarspaceinfo.cpp +++ b/src/statusbarspaceinfo.cpp @@ -64,7 +64,7 @@ void StatusBarSpaceInfo::paintEvent(TQPaintEvent* /* event */) const int widthDec = 3; // visual decrement for the available width - const TQColor c1 = colorGroup().background(); + const TQColor c1 = tqcolorGroup().background(); const TQColor c2 = KGlobalSettings::buttonTextColor(); const TQColor frameColor((c1.red() + c2.red()) / 2, (c1.green() + c2.green()) / 2, @@ -90,7 +90,7 @@ void StatusBarSpaceInfo::paintEvent(TQPaintEvent* /* event */) painter.drawRect(TQRect(left, barTop + 2, right, barHeight - 2)); text = i18n("%1 free") - .arg(KIO::convertSizeFromKB(m_kBAvailable)); + .tqarg(KIO::convertSizeFromKB(m_kBAvailable)); } else { if (m_gettingSize) { diff --git a/src/undomanager.cpp b/src/undomanager.cpp index 0f4ac43..21b3364 100644 --- a/src/undomanager.cpp +++ b/src/undomanager.cpp @@ -84,7 +84,7 @@ void UndoManager::addCommand(const DolphinCommand& command) } emit undoAvailable(true); - emit undoTextChanged(i18n("Undo: %1").arg(commandText(command))); + emit undoTextChanged(i18n("Undo: %1").tqarg(commandText(command))); // prevent an endless growing of the Undo history if (m_historyIndex > 10000) { @@ -132,12 +132,12 @@ void UndoManager::undo() emit undoTextChanged(i18n("Undo")); } else { - emit undoTextChanged(i18n("Undo: %1").arg(commandText(m_history[m_historyIndex]))); + emit undoTextChanged(i18n("Undo: %1").tqarg(commandText(m_history[m_historyIndex]))); } if (m_historyIndex < static_cast<int>(m_history.count()) - 1) { emit redoAvailable(true); - emit redoTextChanged(i18n("Redo: %1").arg(commandText(command))); + emit redoTextChanged(i18n("Redo: %1").tqarg(commandText(command))); } else { emit redoAvailable(false); @@ -244,11 +244,11 @@ void UndoManager::redo() emit redoTextChanged(i18n("Redo")); } else { - emit redoTextChanged(i18n("Redo: %1").arg(commandText(m_history[m_historyIndex + 1]))); + emit redoTextChanged(i18n("Redo: %1").tqarg(commandText(m_history[m_historyIndex + 1]))); } emit undoAvailable(true); - emit undoTextChanged(i18n("Undo: %1").arg(commandText(command))); + emit undoTextChanged(i18n("Undo: %1").tqarg(commandText(command))); Dolphin& dolphin = Dolphin::mainWin(); diff --git a/src/urlbutton.cpp b/src/urlbutton.cpp index a9cc644..a48c833 100644 --- a/src/urlbutton.cpp +++ b/src/urlbutton.cpp @@ -38,7 +38,7 @@ URLButton::URLButton(URLNavigator* parent) m_urlNavigator(parent) { setFocusPolicy(TQ_NoFocus); - setSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Fixed); + tqsetSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Fixed); setMinimumHeight(parent->minimumHeight()); connect(this, TQT_SIGNAL(clicked()), parent, TQT_SLOT(slotRequestActivation())); diff --git a/src/urlnavigator.cpp b/src/urlnavigator.cpp index ce718d8..58de6b0 100644 --- a/src/urlnavigator.cpp +++ b/src/urlnavigator.cpp @@ -428,7 +428,7 @@ void URLNavigator::updateContent() // TODO: don't hardcode the shortcut as part of the text TQToolTip::add(m_toggleButton, i18n("Browse (Ctrl+B, Escape)")); - setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed); + tqsetSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed); m_pathBox->show(); m_pathBox->setURL(url()); } @@ -436,7 +436,7 @@ void URLNavigator::updateContent() // TODO: don't hardcode the shortcut as part of the text TQToolTip::add(m_toggleButton, i18n("Edit location (Ctrl+L)")); - setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); + tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); m_pathBox->hide(); TQString dir_name; diff --git a/src/urlnavigatorbutton.cpp b/src/urlnavigatorbutton.cpp index 64064bb..8d893f9 100644 --- a/src/urlnavigatorbutton.cpp +++ b/src/urlnavigatorbutton.cpp @@ -104,7 +104,7 @@ void URLNavigatorButton::drawButton(TQPainter* painter) foregroundColor = KGlobalSettings::highlightedTextColor(); } else { - backgroundColor = colorGroup().background(); + backgroundColor = tqcolorGroup().background(); foregroundColor = KGlobalSettings::buttonTextColor(); } @@ -114,7 +114,7 @@ void URLNavigatorButton::drawButton(TQPainter* painter) const bool isActive = (dolphin.activeView() == parentView); if (!isActive) { - TQColor dimmColor(colorGroup().background()); + TQColor dimmColor(tqcolorGroup().background()); foregroundColor = mixColors(foregroundColor, dimmColor); if (isHighlighted) { backgroundColor = mixColors(backgroundColor, dimmColor); @@ -331,7 +331,7 @@ void URLNavigatorButton::listJobFinished(KIO::Job* job) ++it; } - int result = dirsMenu->exec(urlNavigator()->mapToGlobal(geometry().bottomLeft())); + int result = dirsMenu->exec(urlNavigator()->mapToGlobal(tqgeometry().bottomLeft())); if (result >= 0) { KURL url = urlNavigator()->url(m_index); diff --git a/src/viewproperties.cpp b/src/viewproperties.cpp index 0d34dd4..ced4b4b 100644 --- a/src/viewproperties.cpp +++ b/src/viewproperties.cpp @@ -229,7 +229,7 @@ void ViewProperties::save() void ViewProperties::updateTimeStamp() { m_changedProps = true; - m_node.setTimeStamp(TQDateTime::currentDateTime()); + m_node.setTimeStamp(TQDateTime::tqcurrentDateTime()); } ViewProperties::Properties::Properties() : diff --git a/src/viewpropertiesdialog.cpp b/src/viewpropertiesdialog.cpp index 9fbdbca..93f1c3e 100644 --- a/src/viewpropertiesdialog.cpp +++ b/src/viewpropertiesdialog.cpp @@ -21,7 +21,7 @@ #include "viewpropertiesdialog.h" #include <klocale.h> #include <tqlabel.h> -#include <layout.h> +#include <tqlayout.h> #include <tqvbox.h> #include <tqbuttongroup.h> #include <tqcheckbox.h> @@ -56,7 +56,7 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : // create 'Properties' group containing view mode, sorting, sort order and show hidden files TQGroupBox* propsGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Properties"), plainPage()); - propsGroup->setSizePolicy(sizePolicy); + propsGroup->tqsetSizePolicy(sizePolicy); propsGroup->setMargin(margin); new TQLabel(i18n("View mode:"), propsGroup); @@ -96,7 +96,7 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : Qt::Vertical, i18n("Apply view properties to:"), plainPage()); - buttonGroup->setSizePolicy(sizePolicy); + buttonGroup->tqsetSizePolicy(sizePolicy); buttonGroup->setMargin(margin); m_applyToCurrentFolder = new TQRadioButton(i18n("Current folder"), buttonGroup); diff --git a/src/viewsettingspage.cpp b/src/viewsettingspage.cpp index 9a74472..fe6e8bd 100644 --- a/src/viewsettingspage.cpp +++ b/src/viewsettingspage.cpp @@ -20,7 +20,7 @@ #include "viewsettingspage.h" #include <tqtabwidget.h> -#include <layout.h> +#include <tqlayout.h> #include <tqlabel.h> #include <kdialogbase.h> #include <klocale.h> |