diff options
author | Slávek Banko <[email protected]> | 2013-09-03 20:01:54 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-09-03 20:58:45 +0200 |
commit | 3e88ddfbc3df52c97d5354890fb9ac68af49bddd (patch) | |
tree | f6830215ebdc83e794a7a223042537595490265f /kcontrol/tdefontinst/viewpart/FontViewPart.cpp | |
parent | 5607b4ae2272da03b692475c2f773f3e27e671b8 (diff) | |
download | tdebase-3e88ddfbc3df52c97d5354890fb9ac68af49bddd.tar.gz tdebase-3e88ddfbc3df52c97d5354890fb9ac68af49bddd.zip |
Additional k => tde renaming and fixes
Diffstat (limited to 'kcontrol/tdefontinst/viewpart/FontViewPart.cpp')
-rw-r--r-- | kcontrol/tdefontinst/viewpart/FontViewPart.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kcontrol/tdefontinst/viewpart/FontViewPart.cpp b/kcontrol/tdefontinst/viewpart/FontViewPart.cpp index 2f289649b..e31510ad3 100644 --- a/kcontrol/tdefontinst/viewpart/FontViewPart.cpp +++ b/kcontrol/tdefontinst/viewpart/FontViewPart.cpp @@ -59,7 +59,7 @@ static KURL getDest(const KURL &url, bool system) { return KURL(KFI::Misc::root() ? TQString("fonts:/") + url.fileName() - : TQString("fonts:/") + TQString(system ? i18n(KFI_KIO_FONTS_SYS) : i18n(KFI_KIO_FONTS_USER)) + : TQString("fonts:/") + TQString(system ? i18n(KFI_TDEIO_FONTS_SYS) : i18n(KFI_TDEIO_FONTS_USER)) + TQChar('/') + url.fileName()); } @@ -122,7 +122,7 @@ bool CFontViewPart::openURL(const KURL &url) if (!url.isValid() || !closeURL()) return false; - if(KFI_KIO_FONTS_PROTOCOL==url.protocol() || url.isLocalFile()) + if(KFI_TDEIO_FONTS_PROTOCOL==url.protocol() || url.isLocalFile()) { m_url=url; emit started(0); @@ -150,7 +150,7 @@ bool CFontViewPart::openFile() void CFontViewPart::timeout() { bool showFs=false, - isFonts=KFI_KIO_FONTS_PROTOCOL==m_url.protocol(); + isFonts=KFI_TDEIO_FONTS_PROTOCOL==m_url.protocol(); itsShowInstallButton=false; @@ -169,12 +169,12 @@ void CFontViewPart::timeout() } else { - destUrl=TQString("fonts:/")+i18n(KFI_KIO_FONTS_SYS)+TQChar('/')+itsPreview->engine().getName(m_url); + destUrl=TQString("fonts:/")+i18n(KFI_TDEIO_FONTS_SYS)+TQChar('/')+itsPreview->engine().getName(m_url); if(TDEIO::NetAccess::exists(destUrl, true, itsFrame->parentWidget())) itsShowInstallButton=false; else { - destUrl=TQString("fonts:/")+i18n(KFI_KIO_FONTS_USER)+TQChar('/')+itsPreview->engine().getName(m_url); + destUrl=TQString("fonts:/")+i18n(KFI_TDEIO_FONTS_USER)+TQChar('/')+itsPreview->engine().getName(m_url); itsShowInstallButton=!TDEIO::NetAccess::exists(destUrl, true, itsFrame->parentWidget()); } } @@ -198,7 +198,7 @@ void CFontViewPart::previewStatus(bool st) itsInstallButton->setShown(st && itsShowInstallButton); itsToolsFrame->setShown(itsInstallButton->isShown()||itsFaceSelector->isShown()); itsChangeTextAction->setEnabled(st); - itsPrintAction->setEnabled(st && KFI_KIO_FONTS_PROTOCOL==m_url.protocol()); + itsPrintAction->setEnabled(st && KFI_TDEIO_FONTS_PROTOCOL==m_url.protocol()); } void CFontViewPart::install() @@ -211,10 +211,10 @@ void CFontViewPart::install() "password)") .arg(itsPreview->engine().getName(m_url)) .arg(m_url.fileName()) - .arg(i18n(KFI_KIO_FONTS_USER)) - .arg(i18n(KFI_KIO_FONTS_SYS)), - i18n("Install"), i18n(KFI_KIO_FONTS_USER), - i18n(KFI_KIO_FONTS_SYS)); + .arg(i18n(KFI_TDEIO_FONTS_USER)) + .arg(i18n(KFI_TDEIO_FONTS_SYS)), + i18n("Install"), i18n(KFI_TDEIO_FONTS_USER), + i18n(KFI_TDEIO_FONTS_SYS)); if(KMessageBox::Cancel!=resp) { |