summaryrefslogtreecommitdiffstats
path: root/src/detailedlistview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:57:51 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:57:51 -0600
commit2781e27b871150395a5a82e221684108641002b2 (patch)
tree57f4d7c01a48faef1a840fbe0de8f4ec1e5f606f /src/detailedlistview.cpp
parent031454e56009d576589c28757f6c6fcf4884095e (diff)
downloadtellico-2781e27b871150395a5a82e221684108641002b2.tar.gz
tellico-2781e27b871150395a5a82e221684108641002b2.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 031454e56009d576589c28757f6c6fcf4884095e.
Diffstat (limited to 'src/detailedlistview.cpp')
-rw-r--r--src/detailedlistview.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/detailedlistview.cpp b/src/detailedlistview.cpp
index 716f5df..93b6894 100644
--- a/src/detailedlistview.cpp
+++ b/src/detailedlistview.cpp
@@ -68,7 +68,7 @@ DetailedListView::DetailedListView(TQWidget* parent_, const char* name_/*=0*/)
connect(m_headerMenu, TQT_SIGNAL(activated(int)),
this, TQT_SLOT(slotHeaderMenuActivated(int)));
- m_checkPix = UserIcon(TQString::fromLatin1("checkmark"));
+ m_checkPix = UserIcon(TQString::tqfromLatin1("checkmark"));
}
DetailedListView::~DetailedListView() {
@@ -82,15 +82,15 @@ void DetailedListView::addCollection(Data::CollPtr coll_) {
m_imageColumns.clear();
// myDebug() << "DetailedListView::addCollection()" << endl;
- KConfigGroup config(kapp->config(), TQString::fromLatin1("Options - %1").arg(coll_->typeName()));
+ KConfigGroup config(kapp->config(), TQString::tqfromLatin1("Options - %1").tqarg(coll_->typeName()));
TQString configN;
if(coll_->type() == Data::Collection::Base) {
KURL url = Kernel::self()->URL();
for(uint i = 0; i < Config::maxCustomURLSettings(); ++i) {
- KURL u = config.readEntry(TQString::fromLatin1("URL_%1").arg(i));
+ KURL u = config.readEntry(TQString::tqfromLatin1("URL_%1").tqarg(i));
if(u == url) {
- configN = TQString::fromLatin1("_%1").arg(i);
+ configN = TQString::tqfromLatin1("_%1").tqarg(i);
break;
}
}
@@ -98,11 +98,11 @@ void DetailedListView::addCollection(Data::CollPtr coll_) {
TQStringList colNames = config.readListEntry("ColumnNames" + configN);
if(colNames.isEmpty()) {
- colNames = TQString::fromLatin1("title");
+ colNames = TQString::tqfromLatin1("title");
}
// this block compensates for the chance that the user added a field and it wasn't
- // written to the widths. Also compensates for 0.5.x to 0.6.x column layout changes
+ // written to the widths. Also compensates for 0.5.x to 0.6.x column tqlayout changes
TQValueList<int> colWidths = config.readIntListEntry("ColumnWidths" + configN);
if(colWidths.empty()) {
colWidths.insert(colWidths.begin(), colNames.count(), -1); // automatic width
@@ -747,16 +747,16 @@ void DetailedListView::slotUpdatePixmap() {
}
void DetailedListView::saveConfig(Tellico::Data::CollPtr coll_, int configIndex_) {
- KConfigGroup config(kapp->config(), TQString::fromLatin1("Options - %1").arg(coll_->typeName()));
+ KConfigGroup config(kapp->config(), TQString::tqfromLatin1("Options - %1").tqarg(coll_->typeName()));
// all of this is to have custom settings on a per file basis
TQString configN;
if(coll_->type() == Data::Collection::Base) {
TQValueList<ConfigInfo> info;
for(uint i = 0; i < Config::maxCustomURLSettings(); ++i) {
- KURL u = config.readEntry(TQString::fromLatin1("URL_%1").arg(i));
+ KURL u = config.readEntry(TQString::tqfromLatin1("URL_%1").tqarg(i));
if(!u.isEmpty() && static_cast<int>(i) != configIndex_) {
- configN = TQString::fromLatin1("_%1").arg(i);
+ configN = TQString::tqfromLatin1("_%1").tqarg(i);
ConfigInfo ci;
ci.cols = config.readListEntry("ColumnNames" + configN);
ci.widths = config.readIntListEntry("ColumnWidths" + configN);
@@ -772,7 +772,7 @@ void DetailedListView::saveConfig(Tellico::Data::CollPtr coll_, int configIndex_
uint limit = TQMIN(info.count(), Config::maxCustomURLSettings()-1);
for(uint i = 0; i < limit; ++i) {
// starts at one since the current config will be written below
- configN = TQString::fromLatin1("_%1").arg(i+1);
+ configN = TQString::tqfromLatin1("_%1").tqarg(i+1);
config.writeEntry("ColumnNames" + configN, info[i].cols);
config.writeEntry("ColumnWidths" + configN, info[i].widths);
config.writeEntry("ColumnOrder" + configN, info[i].order);
@@ -781,7 +781,7 @@ void DetailedListView::saveConfig(Tellico::Data::CollPtr coll_, int configIndex_
config.writeEntry("PrevSortColumn" + configN, info[i].prevSort);
config.writeEntry("Prev2SortColumn" + configN, info[i].prev2Sort);
}
- configN = TQString::fromLatin1("_0");
+ configN = TQString::tqfromLatin1("_0");
}
TQValueList<int> widths, order;
@@ -855,7 +855,7 @@ void DetailedListView::selectAllVisible() {
slotSelectionChanged();
}
-void DetailedListView::resetEntryStatus() {
+void DetailedListView::resetEntrytqStatus() {
for(TQListViewItemIterator it(this); it.current(); ++it) {
static_cast<DetailedEntryItem*>(it.current())->setState(DetailedEntryItem::Normal);
}