summaryrefslogtreecommitdiffstats
path: root/src/newstuff/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newstuff/dialog.cpp')
-rw-r--r--src/newstuff/dialog.cpp12
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_);