summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/transactionsortoption.ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/transactionsortoption.ui.h')
-rw-r--r--kmymoney2/widgets/transactionsortoption.ui.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/kmymoney2/widgets/transactionsortoption.ui.h b/kmymoney2/widgets/transactionsortoption.ui.h
index 3784e0b..fe01eb2 100644
--- a/kmymoney2/widgets/transactionsortoption.ui.h
+++ b/kmymoney2/widgets/transactionsortoption.ui.h
@@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation.
**
** If you wish to add, delete or rename functions or slots use
-** Qt Designer which will update this file, preserving your code. Create an
+** TQt Designer which will update this file, preserving your code. Create an
** init() function in place of a constructor, and a destroy() function in
** place of a destructor.
*****************************************************************************/
@@ -27,19 +27,19 @@
void TransactionSortOption::init()
{
KIconLoader* il = KGlobal::iconLoader();
- m_addButton->setIconSet(QIconSet(il->loadIcon("1rightarrow", KIcon::Small, KIcon::SizeSmall)));
- m_removeButton->setIconSet(QIconSet(il->loadIcon("1leftarrow", KIcon::Small, KIcon::SizeSmall)));
- m_upButton->setIconSet(QIconSet(il->loadIcon("1uparrow", KIcon::Small, KIcon::SizeSmall)));
- m_downButton->setIconSet(QIconSet(il->loadIcon("1downarrow", KIcon::Small, KIcon::SizeSmall)));
+ m_addButton->setIconSet(TQIconSet(il->loadIcon("1rightarrow", KIcon::Small, KIcon::SizeSmall)));
+ m_removeButton->setIconSet(TQIconSet(il->loadIcon("1leftarrow", KIcon::Small, KIcon::SizeSmall)));
+ m_upButton->setIconSet(TQIconSet(il->loadIcon("1uparrow", KIcon::Small, KIcon::SizeSmall)));
+ m_downButton->setIconSet(TQIconSet(il->loadIcon("1downarrow", KIcon::Small, KIcon::SizeSmall)));
// don't allow sorting of the selected entries
m_selectedList->setSortColumn(-1);
// defaults to "post date, value" sorting
- // setSettings(QString("1,4"));
- setSettings(QString());
+ // setSettings(TQString("1,4"));
+ setSettings(TQString());
- QListViewItem* p;
+ TQListViewItem* p;
if((p = m_availableList->firstChild()) != 0) {
m_availableList->setSelected(p, true);
}
@@ -58,17 +58,17 @@ void TransactionSortOption::init()
* it exists in @p settings without @a EntryOrderSort being present, it
* will add @a EntryOrderSort.
*/
-void TransactionSortOption::setSettings(const QString& settings)
+void TransactionSortOption::setSettings(const TQString& settings)
{
m_availableList->clear();
m_selectedList->clear();
- QStringList list = QStringList::split(',', settings);
- QMap<int, bool> selectedMap;
+ TQStringList list = TQStringList::split(',', settings);
+ TQMap<int, bool> selectedMap;
// fill selected list
- QStringList::const_iterator it_s;
- QListViewItem* last = 0;
+ TQStringList::const_iterator it_s;
+ TQListViewItem* last = 0;
int dateSign = 1;
for(it_s = list.begin(); it_s != list.end(); ++it_s) {
int val = (*it_s).toInt();
@@ -82,22 +82,22 @@ void TransactionSortOption::setSettings(const QString& settings)
}
// make sure to create EntryOrderSort if missing but required
- if(selectedMap.find(static_cast<int>(KMyMoneyRegister::EntryDateSort)) != selectedMap.end()
- && selectedMap.find(static_cast<int>(KMyMoneyRegister::EntryOrderSort)) == selectedMap.end()) {
+ if(selectedMap.tqfind(static_cast<int>(KMyMoneyRegister::EntryDateSort)) != selectedMap.end()
+ && selectedMap.tqfind(static_cast<int>(KMyMoneyRegister::EntryOrderSort)) == selectedMap.end()) {
int val = dateSign * static_cast<int>(KMyMoneyRegister::EntryOrderSort);
selectedMap[static_cast<int>(KMyMoneyRegister::EntryOrderSort)] = true;
last = addEntry(m_selectedList, last, val);
}
// fill available list
- QMap<int, bool>::const_iterator it_m;
+ TQMap<int, bool>::const_iterator it_m;
for(int i = static_cast<int>(KMyMoneyRegister::PostDateSort);
i < static_cast<int>(KMyMoneyRegister::MaxSortFields); ++i) {
// Never add EntryDateSort
if(i == static_cast<int>(KMyMoneyRegister::EntryDateSort))
continue;
// Only add those, that are not present in the list of selected items
- if(selectedMap.find(i) == selectedMap.end()) {
+ if(selectedMap.tqfind(i) == selectedMap.end()) {
int val = i;
if(i == static_cast<int>(KMyMoneyRegister::ValueSort))
val = -val;
@@ -106,16 +106,16 @@ void TransactionSortOption::setSettings(const QString& settings)
}
}
-QListViewItem* TransactionSortOption::addEntry( KListView * p, QListViewItem* after, int idx )
+TQListViewItem* TransactionSortOption::addEntry( KListView * p, TQListViewItem* after, int idx )
{
- QString txt = KMyMoneyRegister::sortOrderToText(static_cast<KMyMoneyRegister::TransactionSortField>(abs(idx)));
+ TQString txt = KMyMoneyRegister::sortOrderToText(static_cast<KMyMoneyRegister::TransactionSortField>(abs(idx)));
if(txt.isEmpty())
txt = "Unknown"; // i18n should be handled in sortOptionToText()
return new SortOptionListItem(p, after, txt, idx);
}
-void TransactionSortOption::toggleDirection(QListViewItem* item)
+void TransactionSortOption::toggleDirection(TQListViewItem* item)
{
SortOptionListItem* p = dynamic_cast<SortOptionListItem*>(item);
if(p) {
@@ -124,18 +124,18 @@ void TransactionSortOption::toggleDirection(QListViewItem* item)
}
}
-QString TransactionSortOption::settings( void ) const
+TQString TransactionSortOption::settings( void ) const
{
- QString rc;
+ TQString rc;
SortOptionListItem* item = dynamic_cast<SortOptionListItem*>(m_selectedList->firstChild());
while(item) {
int option = KMyMoneyRegister::textToSortOrder(item->text(0));
// if we look at the EntryOrderSort option, we have to make
// sure, that the EntryDateSort is prepended
if(option == KMyMoneyRegister::EntryOrderSort) {
- rc += QString::number(static_cast<int>(KMyMoneyRegister::EntryDateSort)*item->direction())+",";
+ rc += TQString::number(static_cast<int>(KMyMoneyRegister::EntryDateSort)*item->direction())+",";
}
- rc += QString::number(KMyMoneyRegister::textToSortOrder(item->text(0))*item->direction());
+ rc += TQString::number(KMyMoneyRegister::textToSortOrder(item->text(0))*item->direction());
item = dynamic_cast<SortOptionListItem*>(item->itemBelow());
if(item != 0)
rc += ",";
@@ -143,20 +143,20 @@ QString TransactionSortOption::settings( void ) const
return rc;
}
-void TransactionSortOption::slotAvailableSelected( QListViewItem * item )
+void TransactionSortOption::slotAvailableSelected( TQListViewItem * item )
{
m_addButton->setEnabled(item != 0);
m_removeButton->setDisabled(true);
m_upButton->setDisabled(true);
m_downButton->setDisabled(true);
- QListViewItem* p = m_selectedList->currentItem();
+ TQListViewItem* p = m_selectedList->currentItem();
if(p) {
m_selectedList->setSelected(p, false);
}
}
-void TransactionSortOption::slotSelectedSelected( QListViewItem * item )
+void TransactionSortOption::slotSelectedSelected( TQListViewItem * item )
{
m_addButton->setDisabled(true);
m_removeButton->setEnabled(item != 0);
@@ -168,7 +168,7 @@ void TransactionSortOption::slotSelectedSelected( QListViewItem * item )
m_downButton->setEnabled(false);
}
- QListViewItem* p = m_availableList->currentItem();
+ TQListViewItem* p = m_availableList->currentItem();
if(p) {
m_availableList->setSelected(p, false);
}
@@ -176,9 +176,9 @@ void TransactionSortOption::slotSelectedSelected( QListViewItem * item )
void TransactionSortOption::slotAddItem( void )
{
- QListViewItem* item;
+ TQListViewItem* item;
if((item = m_availableList->currentItem()) != 0) {
- QListViewItem* next = item->itemBelow();
+ TQListViewItem* next = item->itemBelow();
if(!next)
next = item->itemAbove();
m_availableList->takeItem(item);
@@ -194,9 +194,9 @@ void TransactionSortOption::slotAddItem( void )
void TransactionSortOption::slotRemoveItem( void )
{
- QListViewItem* item;
+ TQListViewItem* item;
if((item = m_selectedList->currentItem()) != 0) {
- QListViewItem* next = item->itemBelow();
+ TQListViewItem* next = item->itemBelow();
if(!next)
next = item->itemAbove();
m_selectedList->takeItem(item);
@@ -212,9 +212,9 @@ void TransactionSortOption::slotRemoveItem( void )
void TransactionSortOption::slotUpItem( void )
{
- QListViewItem* item;
+ TQListViewItem* item;
if((item = m_selectedList->currentItem()) != 0) {
- QListViewItem* prev = item->itemAbove();
+ TQListViewItem* prev = item->itemAbove();
if(prev) {
prev->moveItem(item);
m_selectedList->setCurrentItem(item);
@@ -228,9 +228,9 @@ void TransactionSortOption::slotUpItem( void )
void TransactionSortOption::slotDownItem( void )
{
- QListViewItem* item;
+ TQListViewItem* item;
if((item = m_selectedList->currentItem()) != 0) {
- QListViewItem* next = item->itemBelow();
+ TQListViewItem* next = item->itemBelow();
if(next) {
item->moveItem(next);
m_selectedList->setCurrentItem(item);