diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:27:15 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:27:15 -0600 |
commit | 5b6d393e0a2c88cce8f433607c091ae883ef54f9 (patch) | |
tree | 3c54f3e4a9d6fc2ac30a58e96c19ea878fa08459 /src/newstuff/dialog.cpp | |
parent | eb52f16dcfba98b043537ea3da6a1b08b8d51b19 (diff) | |
download | tellico-5b6d393e0a2c88cce8f433607c091ae883ef54f9.tar.gz tellico-5b6d393e0a2c88cce8f433607c091ae883ef54f9.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'src/newstuff/dialog.cpp')
-rw-r--r-- | src/newstuff/dialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/newstuff/dialog.cpp b/src/newstuff/dialog.cpp index 000e782..31e41db 100644 --- a/src/newstuff/dialog.cpp +++ b/src/newstuff/dialog.cpp @@ -79,7 +79,7 @@ public: return s; } else if(col == 4) { TQString s; - TQDate date = KGlobal::locale()->readDate(text(col)); + TQDate date = TDEGlobal::locale()->readDate(text(col)); s.sprintf("%08d", date.year() * 366 + date.dayOfYear()); return s; } @@ -99,7 +99,7 @@ Dialog::Dialog(NewStuff::DataType type_, TQWidget* parent_) , m_tempPreviewImage(0) , m_lastPreviewItem(0) { - m_lang = KGlobal::locale()->language(); + m_lang = TDEGlobal::locale()->language(); TQFrame* frame = plainPage(); TQBoxLayout* boxLayout = new TQVBoxLayout(frame, 0, KDialog::spacingHint()); @@ -215,7 +215,7 @@ Dialog::Dialog(NewStuff::DataType type_, TQWidget* parent_) setMinimumHeight(TQMAX(minimumHeight(), NEW_STUFF_MIN_HEIGHT)); resize(configDialogSize(TQString::fromLatin1("NewStuff Dialog Options"))); - KConfigGroup dialogConfig(KGlobal::config(), "NewStuff Dialog Options"); + KConfigGroup dialogConfig(TDEGlobal::config(), "NewStuff Dialog Options"); TQValueList<int> splitList = dialogConfig.readIntListEntry("Splitter Sizes"); if(!splitList.empty()) { m_split->setSizes(splitList); @@ -228,7 +228,7 @@ Dialog::Dialog(NewStuff::DataType type_, TQWidget* parent_) connect(loader, TQT_SIGNAL(percent(KIO::Job*, unsigned long)), TQT_SLOT(slotShowPercent(KIO::Job*, unsigned long))); connect(loader, TQT_SIGNAL(error()), TQT_SLOT(slotProviderError())); - KConfigGroup config(KGlobal::config(), "KNewStuff"); + KConfigGroup config(TDEGlobal::config(), "KNewStuff"); TQString prov = config.readEntry("ProvidersUrl"); if(prov.isEmpty()) { if(m_type == EntryTemplate) { @@ -254,7 +254,7 @@ Dialog::~Dialog() { m_cursorSaver = 0; saveDialogSize(TQString::fromLatin1("NewStuff Dialog Options")); - KConfigGroup config(KGlobal::config(), "NewStuff Dialog Options"); + KConfigGroup config(TDEGlobal::config(), "NewStuff Dialog Options"); config.writeEntry("Splitter Sizes", m_split->sizes()); } @@ -337,7 +337,7 @@ void Dialog::addEntry(KNS::Entry* entry_) { item->setText(1, entry_->version()); item->setText(2, TQString::number(entry_->rating())); item->setText(3, TQString::number(entry_->downloads())); - item->setText(4, KGlobal::locale()->formatDate(entry_->releaseDate(), true /*short format */)); + item->setText(4, TDEGlobal::locale()->formatDate(entry_->releaseDate(), true /*short format */)); item->setStatus(NewStuff::Manager::installStatus(entry_)); m_entryMap.insert(item, entry_); |