Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4

r14.0.x
Timothy Pearson 12 years ago
parent f7fb2eae5d
commit e9654e1a22

@ -78,7 +78,7 @@ void applyFilterArgs(TDECmdLineArgs* args, FileViewController* controller) {
bool ok = false;
TQDate date;
if (!filterFrom.isEmpty()) {
date = KGlobal::locale()->readDate(filterFrom, &ok);
date = TDEGlobal::locale()->readDate(filterFrom, &ok);
if (!ok) {
kdWarning() << "Invalid value for filter-from option\n";
}
@ -87,7 +87,7 @@ void applyFilterArgs(TDECmdLineArgs* args, FileViewController* controller) {
date=TQDate();
if (!filterTo.isEmpty()) {
date = KGlobal::locale()->readDate(filterTo, &ok);
date = TDEGlobal::locale()->readDate(filterTo, &ok);
if (!ok) {
kdWarning() << "Invalid value for filter-to option\n";
}

@ -183,7 +183,7 @@ MainWindow::MainWindow()
createConnections();
mWindowListActions.setAutoDelete(true);
updateWindowActions();
KMainWindow::applyMainWindowSettings(KGlobal::config(), "MainWindow");
KMainWindow::applyMainWindowSettings(TDEGlobal::config(), "MainWindow");
}
@ -197,7 +197,7 @@ void MainWindow::setFullScreen(bool value) {
bool MainWindow::queryClose() {
mDocument->saveBeforeClosing();
KConfig* config=KGlobal::config();
KConfig* config=TDEGlobal::config();
// Don't store dock layout if only the image dock is visible. This avoid
// saving layout when in "fullscreen" or "image only" mode.
@ -216,7 +216,7 @@ bool MainWindow::queryClose() {
}
if (!mToggleFullScreen->isChecked()) {
saveMainWindowSettings(KGlobal::config(), "MainWindow");
saveMainWindowSettings(TDEGlobal::config(), "MainWindow");
}
MiscConfig::setHistory( mURLEdit->historyItems() );
MiscConfig::writeConfig();
@ -570,7 +570,7 @@ void MainWindow::showToolBars() {
void MainWindow::toggleFullScreen() {
if (mToggleFullScreen->isChecked()) {
saveMainWindowSettings(KGlobal::config(), "MainWindow");
saveMainWindowSettings(TDEGlobal::config(), "MainWindow");
showFullScreen();
menuBar()->hide();
@ -690,7 +690,7 @@ void MainWindow::showKeyDialog() {
void MainWindow::showToolBarDialog() {
saveMainWindowSettings(KGlobal::config(), "MainWindow");
saveMainWindowSettings(TDEGlobal::config(), "MainWindow");
KEditToolbar dlg(actionCollection());
connect(&dlg,TQT_SIGNAL(newToolbarConfig()),TQT_TQOBJECT(this),TQT_SLOT(applyMainWindowSettings()));
dlg.exec();
@ -698,7 +698,7 @@ void MainWindow::showToolBarDialog() {
void MainWindow::applyMainWindowSettings() {
createGUI();
KMainWindow::applyMainWindowSettings(KGlobal::config(), "MainWindow");
KMainWindow::applyMainWindowSettings(TDEGlobal::config(), "MainWindow");
}
@ -856,7 +856,7 @@ void MainWindow::updateImageActions() {
* actions are created in createObjectInteractions
*/
void MainWindow::createWidgets() {
KConfig* config=KGlobal::config();
KConfig* config=TDEGlobal::config();
mCentralStack=new TQWidgetStack(this);
setCentralWidget(mCentralStack);

@ -98,7 +98,7 @@ void DeleteDialog::updateUI()
fileCount);
iconName = "trashcan_full";
}
TQPixmap icon = KGlobal::iconLoader()->loadIcon(iconName, KIcon::NoGroup, KIcon::SizeMedium);
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon(iconName, KIcon::NoGroup, KIcon::SizeMedium);
m_widget->ddDeleteText->setText(msg);
m_widget->ddWarningIcon->setPixmap(icon);

@ -367,7 +367,7 @@ void Document::doPaint(KPrinter *printer, TQPainter *painter) {
TQPaintDeviceMetrics pdMetrics(painter->device());
const int margin = pdMetrics.logicalDpiY() / 2; // half-inch margin
painter->setFont( KGlobalSettings::generalFont() );
painter->setFont( TDEGlobalSettings::generalFont() );
TQFontMetrics fMetrics = painter->fontMetrics();
int x = 0;

@ -146,12 +146,12 @@ ExternalToolManager::ExternalToolManager() {
d=new ExternalToolManagerPrivate;
// Getting dirs
d->mUserToolDir=KGlobal::dirs()->saveLocation("appdata", "tools");
d->mUserToolDir=TDEGlobal::dirs()->saveLocation("appdata", "tools");
d->mUserToolDir=addSlash(d->mUserToolDir);
Q_ASSERT(!d->mUserToolDir.isEmpty());
LOG("d->mUserToolDir:" << d->mUserToolDir);
TQStringList dirs=KGlobal::dirs()->findDirs("appdata", "tools");
TQStringList dirs=TDEGlobal::dirs()->findDirs("appdata", "tools");
LOG("dirs:" << dirs.join(","));
// Loading desktop files

@ -216,7 +216,7 @@ void FileDetailView::selected( TQListViewItem *item )
{
if ( !item ) return;
if ( KGlobalSettings::singleClick() ) {
if ( TDEGlobalSettings::singleClick() ) {
const KFileItem *fi = ( (FileDetailViewItem*)item )->fileInfo();
if ( fi && (fi->isDir() || !onlyDoubleClickSelectsFiles()) )
sig->activate( fi );

@ -39,7 +39,7 @@ void FileDetailViewItem::init()
setPixmap( COL_NAME, inf->pixmap(KIcon::SizeSmall));
setText( COL_NAME, inf->text() );
setText( COL_SIZE, KGlobal::locale()->formatNumber( inf->size(), 0));
setText( COL_SIZE, TDEGlobal::locale()->formatNumber( inf->size(), 0));
setText( COL_DATE, TimeUtils::formatTime(time) );
setText( COL_PERM, inf->permissionsString() );
setText( COL_OWNER, inf->user() );

@ -642,7 +642,7 @@ void FileThumbnailView::setSortingKey(TQIconViewItem *iconItem, const KFileItem
//--------------------------------------------------------------------------
void FileThumbnailView::slotDoubleClicked(TQIconViewItem* iconItem) {
if (!iconItem) return;
if (KGlobalSettings::singleClick()) return;
if (TDEGlobalSettings::singleClick()) return;
FileThumbnailViewItem* thumbItem=static_cast<FileThumbnailViewItem*>(iconItem);
KFileItem* fileItem=thumbItem->fileItem();
@ -655,7 +655,7 @@ void FileThumbnailView::slotDoubleClicked(TQIconViewItem* iconItem) {
void FileThumbnailView::slotClicked(TQIconViewItem* iconItem) {
if (!iconItem) return;
if (!KGlobalSettings::singleClick()) return;
if (!TDEGlobalSettings::singleClick()) return;
FileThumbnailViewItem* thumbItem=static_cast<FileThumbnailViewItem*>(iconItem);
KFileItem* fileItem=thumbItem->fileItem();

@ -1143,7 +1143,7 @@ void ImageView::slotSelectZoom() {
if (currentItem>=int(d->mZoomComboActions.count()) ) {
TQString txt=d->mZoomCombo->currentText();
txt=txt.left(txt.find('%'));
double value=KGlobal::locale()->readNumber(txt) / 100.0;
double value=TDEGlobal::locale()->readNumber(txt) / 100.0;
updateZoom(ZOOM_FREE, value);
} else {
d->mZoomComboActions[currentItem]->activate();

@ -378,7 +378,7 @@ ThumbnailLoadJob::ThumbnailLoadJob(const TQValueVector<const KFileItem*>* items,
{
LOG("");
mBrokenPixmap=KGlobal::iconLoader()->loadIcon("file_broken",
mBrokenPixmap=TDEGlobal::iconLoader()->loadIcon("file_broken",
KIcon::NoGroup, ThumbnailSize::MIN);
// Look for images and store the items in our todo list

@ -45,7 +45,7 @@ time_t getTime(const KFileItem* item) {
TQString formatTime(time_t time) {
TQDateTime dt;
dt.setTime_t(time);
return KGlobal::locale()->formatDateTime(dt);
return TDEGlobal::locale()->formatDateTime(dt);
}

@ -63,8 +63,8 @@ GVDirPart::GVDirPart(TQWidget* parentWidget, const char* /*widgetName*/, TQObjec
const TQStringList &) : KParts::ReadOnlyPart( parent, name ) {
GVDirFactory::instance()->iconLoader()->addAppDir( "gwenview");
setInstance( GVDirFactory::instance() );
KGlobal::locale()->insertCatalogue("gwenview");
KGlobal::locale()->setActiveCatalogue("gwenview");
TDEGlobal::locale()->insertCatalogue("gwenview");
TDEGlobal::locale()->setActiveCatalogue("gwenview");
mBrowserExtension = new GVDirPartBrowserExtension(this);

@ -82,8 +82,8 @@ GVImagePart::GVImagePart(TQWidget* parentWidget, const char* /*widgetName*/, TQO
, mLastDirection( DirectionUnknown ) {
GVImageFactory::instance()->iconLoader()->addAppDir( "gwenview");
setInstance( GVImageFactory::instance() );
KGlobal::locale()->insertCatalogue("gwenview");
KGlobal::locale()->setActiveCatalogue("gwenview");
TDEGlobal::locale()->insertCatalogue("gwenview");
TDEGlobal::locale()->setActiveCatalogue("gwenview");
mBrowserExtension = new GVImagePartBrowserExtension(this);

Loading…
Cancel
Save