Remove the tq in front of these incorrectly TQt4-converted methods/data members:

tqrepaint[...]
tqinvalidate[...]
tqparent[...]
tqmask[...]
tqlayout[...]
tqalignment[...]


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 98fdf3c146
commit 7b65a26139

@ -137,10 +137,10 @@ void BookmarkSelector::drawButton(TQPainter* painter)
} }
// dimm the colors if the tqparent view does not have the focus // dimm the colors if the tqparent view does not have the focus
const DolphinView* tqparentView = urlNavigator()->dolphinView(); const DolphinView* parentView = urlNavigator()->dolphinView();
const Dolphin& dolphin = Dolphin::mainWin(); const Dolphin& dolphin = Dolphin::mainWin();
const bool isActive = (dolphin.activeView() == tqparentView); const bool isActive = (dolphin.activeView() == parentView);
if (!isActive) { if (!isActive) {
TQColor dimmColor(tqcolorGroup().background()); TQColor dimmColor(tqcolorGroup().background());
foregroundColor = mixColors(foregroundColor, dimmColor); foregroundColor = mixColors(foregroundColor, dimmColor);

@ -38,10 +38,10 @@
#include "dolphinsettings.h" #include "dolphinsettings.h"
#include "dolphiniconsviewsettings.h" #include "dolphiniconsviewsettings.h"
DolphinIconsView::DolphinIconsView(DolphinView* tqparent, LayoutMode tqlayoutMode) : DolphinIconsView::DolphinIconsView(DolphinView* tqparent, LayoutMode layoutMode) :
KFileIconView(tqparent, 0), KFileIconView(tqparent, 0),
m_previewIconSize(-1), m_previewIconSize(-1),
m_tqlayoutMode(tqlayoutMode), m_layoutMode(layoutMode),
m_dolphinView(tqparent) m_dolphinView(tqparent)
{ {
setAcceptDrops(true); setAcceptDrops(true);
@ -81,7 +81,7 @@ DolphinIconsView::DolphinIconsView(DolphinView* tqparent, LayoutMode tqlayoutMod
setItemsMovable(true); setItemsMovable(true);
setWordWrapIconText(true); setWordWrapIconText(true);
if (m_tqlayoutMode == Previews) { if (m_layoutMode == Previews) {
showPreviews(); showPreviews();
} }
refreshSettings(); refreshSettings();
@ -93,8 +93,8 @@ DolphinIconsView::~DolphinIconsView()
void DolphinIconsView::setLayoutMode(LayoutMode mode) void DolphinIconsView::setLayoutMode(LayoutMode mode)
{ {
if (m_tqlayoutMode != mode) { if (m_layoutMode != mode) {
m_tqlayoutMode = mode; m_layoutMode = mode;
refreshSettings(); refreshSettings();
} }
} }
@ -129,7 +129,7 @@ void DolphinIconsView::endItemUpdates()
void DolphinIconsView::refreshSettings() void DolphinIconsView::refreshSettings()
{ {
const DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_tqlayoutMode); const DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode);
assert(settings != 0); assert(settings != 0);
setIconSize(settings->iconSize()); setIconSize(settings->iconSize());
@ -151,7 +151,7 @@ void DolphinIconsView::refreshSettings()
setFont(adjustedFont); setFont(adjustedFont);
setIconTextHeight(settings->textlinesCount()); setIconTextHeight(settings->textlinesCount());
if (m_tqlayoutMode == Previews) { if (m_layoutMode == Previews) {
// There is no getter method for the current size in KFileIconView. To // There is no getter method for the current size in KFileIconView. To
// prevent a flickering the current size is stored in m_previewIconSize and // prevent a flickering the current size is stored in m_previewIconSize and
// setPreviewSize is only invoked if the size really has changed. // setPreviewSize is only invoked if the size really has changed.
@ -168,13 +168,13 @@ void DolphinIconsView::refreshSettings()
void DolphinIconsView::zoomIn() void DolphinIconsView::zoomIn()
{ {
if (isZoomInPossible()) { if (isZoomInPossible()) {
DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_tqlayoutMode); DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode);
const int textWidthHint = settings->textWidthHint(); const int textWidthHint = settings->textWidthHint();
const int iconSize = increasedIconSize(settings->iconSize()); const int iconSize = increasedIconSize(settings->iconSize());
settings->setIconSize(iconSize); settings->setIconSize(iconSize);
if (m_tqlayoutMode == Previews) { if (m_layoutMode == Previews) {
const int previewSize = increasedIconSize(settings->previewSize()); const int previewSize = increasedIconSize(settings->previewSize());
settings->setPreviewSize(previewSize); settings->setPreviewSize(previewSize);
} }
@ -187,13 +187,13 @@ void DolphinIconsView::zoomIn()
void DolphinIconsView::zoomOut() void DolphinIconsView::zoomOut()
{ {
if (isZoomOutPossible()) { if (isZoomOutPossible()) {
DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_tqlayoutMode); DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode);
const int textWidthHint = settings->textWidthHint(); const int textWidthHint = settings->textWidthHint();
const int iconSize = decreasedIconSize(settings->iconSize()); const int iconSize = decreasedIconSize(settings->iconSize());
settings->setIconSize(iconSize); settings->setIconSize(iconSize);
if (m_tqlayoutMode == Previews) { if (m_layoutMode == Previews) {
const int previewSize = decreasedIconSize(settings->previewSize()); const int previewSize = decreasedIconSize(settings->previewSize());
settings->setPreviewSize(previewSize); settings->setPreviewSize(previewSize);
} }
@ -205,14 +205,14 @@ void DolphinIconsView::zoomOut()
bool DolphinIconsView::isZoomInPossible() const bool DolphinIconsView::isZoomInPossible() const
{ {
DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_tqlayoutMode); DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode);
const int size = (m_tqlayoutMode == Icons) ? settings->iconSize() : settings->previewSize(); const int size = (m_layoutMode == Icons) ? settings->iconSize() : settings->previewSize();
return size < KIcon::SizeEnormous; return size < KIcon::SizeEnormous;
} }
bool DolphinIconsView::isZoomOutPossible() const bool DolphinIconsView::isZoomOutPossible() const
{ {
DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_tqlayoutMode); DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode);
return settings->iconSize() > KIcon::SizeSmall; return settings->iconSize() > KIcon::SizeSmall;
} }
@ -221,7 +221,7 @@ void DolphinIconsView::arrangeItemsInGrid( bool updated )
KFileIconView::arrangeItemsInGrid(updated); KFileIconView::arrangeItemsInGrid(updated);
if (m_tqlayoutMode == Previews) { if (m_layoutMode == Previews) {
// The class KFileIconView has a bug when the size of the previews differs from the size // The class KFileIconView has a bug when the size of the previews differs from the size
// of the icons: For specific MIME types the y-position and the height is calculated in // of the icons: For specific MIME types the y-position and the height is calculated in
// a wrong manner. The following code bypasses this issue. No bugreport has been submitted // a wrong manner. The following code bypasses this issue. No bugreport has been submitted

@ -47,12 +47,12 @@ public:
Previews Previews
}; };
DolphinIconsView(DolphinView *tqparent, LayoutMode tqlayoutMode); DolphinIconsView(DolphinView *tqparent, LayoutMode layoutMode);
virtual ~DolphinIconsView(); virtual ~DolphinIconsView();
void setLayoutMode(LayoutMode mode); void setLayoutMode(LayoutMode mode);
LayoutMode tqlayoutMode() const { return m_tqlayoutMode; } LayoutMode layoutMode() const { return m_layoutMode; }
/** @see ItemEffectsManager::updateItems */ /** @see ItemEffectsManager::updateItems */
virtual void beginItemUpdates(); virtual void beginItemUpdates();
@ -156,7 +156,7 @@ private slots:
private: private:
int m_previewIconSize; int m_previewIconSize;
LayoutMode m_tqlayoutMode; LayoutMode m_layoutMode;
DolphinView* m_dolphinView; DolphinView* m_dolphinView;
/** Returns the increased icon size for the size \a size. */ /** Returns the increased icon size for the size \a size. */

@ -26,7 +26,7 @@
DolphinIconsViewSettings::DolphinIconsViewSettings(DolphinIconsView::LayoutMode mode) : DolphinIconsViewSettings::DolphinIconsViewSettings(DolphinIconsView::LayoutMode mode) :
m_arrangement(TQIconView::LeftToRight), m_arrangement(TQIconView::LeftToRight),
m_tqlayoutMode(mode), m_layoutMode(mode),
m_iconSize(KIcon::SizeMedium), m_iconSize(KIcon::SizeMedium),
m_previewSize(KIcon::SizeMedium), m_previewSize(KIcon::SizeMedium),
m_gridWidth(0), m_gridWidth(0),
@ -189,7 +189,7 @@ int DolphinIconsViewSettings::textWidthHint() const
void DolphinIconsViewSettings::setConfigGroup(KConfig* config) void DolphinIconsViewSettings::setConfigGroup(KConfig* config)
{ {
if (m_tqlayoutMode == DolphinIconsView::Previews) { if (m_layoutMode == DolphinIconsView::Previews) {
config->setGroup("Previews Mode"); config->setGroup("Previews Mode");
} }
else { else {

@ -110,7 +110,7 @@ public:
private: private:
TQIconView::Arrangement m_arrangement; TQIconView::Arrangement m_arrangement;
DolphinIconsView::LayoutMode m_tqlayoutMode; DolphinIconsView::LayoutMode m_layoutMode;
int m_iconSize; int m_iconSize;
int m_previewSize; int m_previewSize;
int m_gridWidth; int m_gridWidth;

@ -858,10 +858,10 @@ void DolphinView::createView()
switch (m_mode) { switch (m_mode) {
case IconsView: case IconsView:
case PreviewsView: { case PreviewsView: {
const DolphinIconsView::LayoutMode tqlayoutMode = (m_mode == IconsView) ? const DolphinIconsView::LayoutMode layoutMode = (m_mode == IconsView) ?
DolphinIconsView::Icons : DolphinIconsView::Icons :
DolphinIconsView::Previews; DolphinIconsView::Previews;
m_iconsView = new DolphinIconsView(this, tqlayoutMode); m_iconsView = new DolphinIconsView(this, layoutMode);
m_topLayout->insertWidget(1, m_iconsView); m_topLayout->insertWidget(1, m_iconsView);
setFocusProxy(m_iconsView); setFocusProxy(m_iconsView);

@ -11,7 +11,7 @@ Name[bn]=এই মেশিনে প্রত্যন্ত ডেস্ক
Name[bs]=Otvori Remote Desktop vezu na ovaj računar Name[bs]=Otvori Remote Desktop vezu na ovaj računar
Name[ca]=Obre una connexió remota d'escriptori a aquesta màquina Name[ca]=Obre una connexió remota d'escriptori a aquesta màquina
Name[cs]=Otevřít vzdálené připojení plochy k tomuto počítači Name[cs]=Otevřít vzdálené připojení plochy k tomuto počítači
Name[da]=Åbn ekstern desktopforbindelse til denne tqmaskine Name[da]=Åbn ekstern desktopforbindelse til denne maskine
Name[de]=Verbindung zur Arbeitsfläche dieses Rechners herstellen Name[de]=Verbindung zur Arbeitsfläche dieses Rechners herstellen
Name[el]=Δημιουργία σύνδεσης σε απομακρυσμένη επιφάνεια εργασίας σε αυτό το μηχάνημα Name[el]=Δημιουργία σύνδεσης σε απομακρυσμένη επιφάνεια εργασίας σε αυτό το μηχάνημα
Name[es]=Abrir conexión remota de escritorio a este sistema Name[es]=Abrir conexión remota de escritorio a este sistema
@ -29,11 +29,11 @@ Name[ja]=このホストへリモートデスクトップ接続を開く
Name[kk]=Осы компьютердегі үстелге қашық қосылымды ашу Name[kk]=Осы компьютердегі үстелге қашық қосылымды ашу
Name[km]=បើក​ការ​ត​ភ្ជាប​ផ្ទៃ​តុ​ពី​ចម្ងាយ​ទៅ​ម៉ាស៊ីន​នេះ Name[km]=បើក​ការ​ត​ភ្ជាប​ផ្ទៃ​តុ​ពី​ចម្ងាយ​ទៅ​ម៉ាស៊ីន​នេះ
Name[lt]=Užmegzti nutolusio darbastalio prijungimą prie šio kompiuterio Name[lt]=Užmegzti nutolusio darbastalio prijungimą prie šio kompiuterio
Name[nb]=Åpne fjerntilkobling til skrivebord til denne tqmaskinen Name[nb]=Åpne fjerntilkobling til skrivebord til denne maskinen
Name[nds]=Schriefdisch-Feernverbinnen na dissen Reekner opmaken Name[nds]=Schriefdisch-Feernverbinnen na dissen Reekner opmaken
Name[ne]=यो मेशिनमा टाढाको डेस्कटप जडान खोल्नुहोस् Name[ne]=यो मेशिनमा टाढाको डेस्कटप जडान खोल्नुहोस्
Name[nl]=Externe bureaubladverbinding met deze computer openen Name[nl]=Externe bureaubladverbinding met deze computer openen
Name[nn]=Opna samband til skrivebordet over nettverket til denne tqmaskina Name[nn]=Opna samband til skrivebordet over nettverket til denne maskina
Name[pa]=ਇਹ ਮਸ਼ੀਨ ਲਈ ਰਿਮੋਟ ਡੈਸਕਟਾਪ ਕੁਨੈਕਸ਼ਨ ਖੋਲ੍ਹੋ Name[pa]=ਇਹ ਮਸ਼ੀਨ ਲਈ ਰਿਮੋਟ ਡੈਸਕਟਾਪ ਕੁਨੈਕਸ਼ਨ ਖੋਲ੍ਹੋ
Name[pl]=Otwórz zdalne połączenie z pulpitem na tej maszynie Name[pl]=Otwórz zdalne połączenie z pulpitem na tej maszynie
Name[pt]=Abrir Ligação Remota a Ecrã para Este Computador Name[pt]=Abrir Ligação Remota a Ecrã para Este Computador

@ -109,10 +109,10 @@ void URLNavigatorButton::drawButton(TQPainter* painter)
} }
// dimm the colors if the tqparent view does not have the focus // dimm the colors if the tqparent view does not have the focus
const DolphinView* tqparentView = urlNavigator()->dolphinView(); const DolphinView* parentView = urlNavigator()->dolphinView();
const Dolphin& dolphin = Dolphin::mainWin(); const Dolphin& dolphin = Dolphin::mainWin();
const bool isActive = (dolphin.activeView() == tqparentView); const bool isActive = (dolphin.activeView() == parentView);
if (!isActive) { if (!isActive) {
TQColor dimmColor(tqcolorGroup().background()); TQColor dimmColor(tqcolorGroup().background());
foregroundColor = mixColors(foregroundColor, dimmColor); foregroundColor = mixColors(foregroundColor, dimmColor);

@ -77,14 +77,14 @@ ViewProperties::ViewProperties(KURL url) :
const bool isValidForSubDirs = !node.isEmpty() && node.isValidForSubDirs(); const bool isValidForSubDirs = !node.isEmpty() && node.isValidForSubDirs();
while ((dir.path() != rootDir) && dir.cdUp()) { while ((dir.path() != rootDir) && dir.cdUp()) {
TQFile file(dir.path() + FILE_NAME); TQFile file(dir.path() + FILE_NAME);
PropertiesNode tqparentNode(&file); PropertiesNode parentNode(&file);
if (!tqparentNode.isEmpty()) { if (!parentNode.isEmpty()) {
const bool inheritProps = tqparentNode.isValidForSubDirs() && const bool inheritProps = parentNode.isValidForSubDirs() &&
(tqparentNode.subDirProperties().m_timeStamp > (parentNode.subDirProperties().m_timeStamp >
node.localProperties().m_timeStamp); node.localProperties().m_timeStamp);
if (inheritProps) { if (inheritProps) {
node.setLocalProperties(tqparentNode.subDirProperties()); node.setLocalProperties(parentNode.subDirProperties());
break; break;
} }
} }

Loading…
Cancel
Save