Revision: 7294
Author: nogu.dev
Date: Sat Sep 10 20:25:18 2011
Log: * qt4/pref/customwidgets.cpp
- (CustomPathnameEdit::setDefault): Change title.
- (CustomOrderedListEdit::slotEditButtonClicked):
Set title based on custom label.
- (CustomKeyEdit::slotKeyButtonClicked): Ditto.
* qt4/pref/keyeditformbase.cpp
- (KeyEditFormBase::KeyEditFormBase): Don't set title here.
* qt4/pref/olisteditformbase.cpp
- (OListEditFormBase::OListEditFormBase): Ditto.
http://code.google.com/p/uim/source/detail?r=7294
Modified:
/trunk/qt4/pref/customwidgets.cpp
/trunk/qt4/pref/keyeditformbase.cpp
/trunk/qt4/pref/olisteditformbase.cpp
=======================================
--- /trunk/qt4/pref/customwidgets.cpp Sat Sep 10 18:52:14 2011
+++ /trunk/qt4/pref/customwidgets.cpp Sat Sep 10 20:25:18 2011
@@ -240,7 +240,7 @@
void CustomPathnameEdit::slotPathnameButtonClicked()
{
- m_fileDialog = new QFileDialog( this, "file dialog" );
+ m_fileDialog = new QFileDialog( this, _("Specify file") );
switch (m_custom->value->as_pathname->type) {
case UCustomPathnameType_Directory:
@@ -459,6 +459,7 @@
void CustomOrderedListEdit::slotEditButtonClicked()
{
OListEditForm *d = new OListEditForm( this );
+ d->setWindowTitle( _FU8( m_custom->label ) );
initPtrList();
/*
@@ -729,6 +730,8 @@
void CustomKeyEdit::slotKeyButtonClicked()
{
KeyEditForm *d = new KeyEditForm( this );
+ d->setWindowTitle(
+ _( "%1 - key configuration" ).arg( _FU8( m_custom->label ) ) );
/* add items */
QString str;
=======================================
--- /trunk/qt4/pref/keyeditformbase.cpp Sat Jun 4 08:02:46 2011
+++ /trunk/qt4/pref/keyeditformbase.cpp Sat Sep 10 20:25:18 2011
@@ -44,8 +44,6 @@
KeyEditFormBase::KeyEditFormBase(QWidget *widget) : QDialog(widget)
{
- setWindowTitle(_("Edit Keys"));
-
m_listView = new QTreeWidget;
QTreeWidgetItem *item = m_listView->headerItem();
item->setText(0, _("Key Combination"));
=======================================
--- /trunk/qt4/pref/olisteditformbase.cpp Sat Jun 4 08:02:46 2011
+++ /trunk/qt4/pref/olisteditformbase.cpp Sat Sep 10 20:25:18 2011
@@ -44,8 +44,6 @@
OListEditFormBase::OListEditFormBase(QWidget *widget) : QDialog(widget)
{
- setWindowTitle(_("Edit Ordered List"));
-
m_listView = new QTreeWidget;
m_listView->setSelectionMode(QAbstractItemView::SingleSelection);