[qet] [2073] element editor: language dialog give the focus for new line and sort language by alphabetic |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2073
Author: blacksun
Date: 2013-03-25 18:29:07 +0100 (Mon, 25 Mar 2013)
Log Message:
-----------
element editor: language dialog give the focus for new line and sort language by alphabetic
Modified Paths:
--------------
trunk/sources/nameslistwidget.cpp
Modified: trunk/sources/nameslistwidget.cpp
===================================================================
--- trunk/sources/nameslistwidget.cpp 2013-03-24 09:09:43 UTC (rev 2072)
+++ trunk/sources/nameslistwidget.cpp 2013-03-25 17:29:07 UTC (rev 2073)
@@ -73,6 +73,8 @@
QTreeWidgetItem *qtwi = new QTreeWidgetItem();
qtwi -> setFlags(Qt::ItemIsEditable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
tree_names -> addTopLevelItem(qtwi);
+ tree_names -> setCurrentItem(qtwi);
+ tree_names -> editItem(qtwi);
}
/**
@@ -138,6 +140,7 @@
QTreeWidgetItem *qtwi = new QTreeWidgetItem(values);
if (!read_only) qtwi -> setFlags(Qt::ItemIsEditable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
tree_names -> addTopLevelItem(qtwi);
+ tree_names -> sortItems(0, Qt::AscendingOrder);
}
}