diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-06-14 07:12:29 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-06-14 07:12:29 -0500 |
commit | af8fdcf1ca7bdbda6f0c1afecd8c2d8ffa23bebb (patch) | |
tree | c2ed11478fd63fbddf89aeac6ad9a7d165ea289a | |
parent | 94c25ec781351f6fd7724030311341ea0d7af5f9 (diff) | |
parent | f27c2533f735d53c6b555f387c6390c0690cc246 (diff) | |
download | tqt3-af8fdcf1ca7bdbda6f0c1afecd8c2d8ffa23bebb.tar.gz tqt3-af8fdcf1ca7bdbda6f0c1afecd8c2d8ffa23bebb.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tqt3
-rw-r--r-- | plugins/src/sqldrivers/odbc/odbc.pro | 2 | ||||
-rw-r--r-- | src/kernel/qwidget_x11.cpp | 32 | ||||
-rw-r--r-- | src/sql/drivers/odbc/qsql_odbc.cpp | 5 | ||||
-rw-r--r-- | src/sql/qt_sql.pri | 4 | ||||
-rw-r--r-- | translations/qt_zh-tw.ts | 82 |
5 files changed, 66 insertions, 59 deletions
diff --git a/plugins/src/sqldrivers/odbc/odbc.pro b/plugins/src/sqldrivers/odbc/odbc.pro index ac0cf3c50..36d35b51c 100644 --- a/plugins/src/sqldrivers/odbc/odbc.pro +++ b/plugins/src/sqldrivers/odbc/odbc.pro @@ -17,7 +17,7 @@ mac { unix { OBJECTS_DIR = .obj !contains( LIBS, .*odbc.* ) { - LIBS *= -liodbc + LIBS *= -lodbc } } diff --git a/src/kernel/qwidget_x11.cpp b/src/kernel/qwidget_x11.cpp index 71c36373b..2aff3012a 100644 --- a/src/kernel/qwidget_x11.cpp +++ b/src/kernel/qwidget_x11.cpp @@ -630,7 +630,10 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) wsa.save_under = True; XChangeWindowAttributes( dpy, id, CWOverrideRedirect | CWSaveUnder, &wsa ); - x11SetWindowType(); + XClassHint class_hint; + class_hint.res_name = (char *) tqAppName(); // application name + class_hint.res_class = (char *) tqAppClass(); // application class + XSetClassHint( dpy, id, &class_hint ); } else if ( topLevel && !desktop ) { // top-level widget TQWidget *p = parentWidget(); // real parent if (p) @@ -693,8 +696,6 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) else XDeleteProperty(dpy, id, qt_xa_motif_wm_hints); - x11SetWindowType(); - // set _NET_WM_WINDOW_STATE if (curr_winstate > 0) XChangeProperty(dpy, id, qt_net_wm_state, XA_ATOM, 32, PropModeReplace, @@ -709,11 +710,6 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) else XDeleteProperty(dpy, id, qt_net_wm_action); - // set _NET_WM_PID - long curr_pid = getpid(); - XChangeProperty(dpy, id, qt_net_wm_pid, XA_CARDINAL, 32, PropModeReplace, - (unsigned char *) &curr_pid, 1); - #ifndef QT_NO_XSYNC // set _NET_WM_SYNC_COUNTER createSyncCounter(); @@ -725,19 +721,31 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) // when we create a toplevel widget, the frame strut should be dirty fstrut_dirty = 1; + } else { + // non-toplevel widgets don't have a frame, so no need to + // update the strut + fstrut_dirty = 0; + } + + if (initializeWindow && (popup || (topLevel && !desktop))) { // properties set on all toplevel windows + x11SetWindowType(); + + // set _NET_WM_PID + long curr_pid = getpid(); + XChangeProperty(dpy, id, qt_net_wm_pid, XA_CARDINAL, 32, PropModeReplace, + (unsigned char *) &curr_pid, 1); + // declare the widget's object name as window role XChangeProperty( dpy, id, tqt_window_role, XA_STRING, 8, PropModeReplace, (unsigned char *)name(), tqstrlen( name() ) ); // set client leader property + if ( !qt_x11_wm_client_leader ) + qt_x11_create_wm_client_leader(); XChangeProperty( dpy, id, qt_wm_client_leader, XA_WINDOW, 32, PropModeReplace, (unsigned char *)&qt_x11_wm_client_leader, 1 ); - } else { - // non-toplevel widgets don't have a frame, so no need to - // update the strut - fstrut_dirty = 0; } if ( initializeWindow ) { diff --git a/src/sql/drivers/odbc/qsql_odbc.cpp b/src/sql/drivers/odbc/qsql_odbc.cpp index f1c9e8da7..cfe4d337f 100644 --- a/src/sql/drivers/odbc/qsql_odbc.cpp +++ b/src/sql/drivers/odbc/qsql_odbc.cpp @@ -61,19 +61,18 @@ #endif // newer platform SDKs use SQLLEN instead of SQLINTEGER -#ifdef SQLLEN +#if defined(SQLLEN) || defined(Q_OS_WIN64) || defined(Q_OS_UNIX) # define TQSQLLEN SQLLEN #else # define TQSQLLEN SQLINTEGER #endif -#ifdef SQLULEN +#if defined(SQLULEN) || defined(Q_OS_WIN64) || defined(Q_OS_UNIX) # define TQSQLULEN SQLULEN #else # define TQSQLULEN SQLUINTEGER #endif - static const TQSQLLEN COLNAMESIZE = 256; //Map TQt parameter types to ODBC types static const SQLSMALLINT qParamType[ 4 ] = { SQL_PARAM_INPUT, SQL_PARAM_INPUT, SQL_PARAM_OUTPUT, SQL_PARAM_INPUT_OUTPUT }; diff --git a/src/sql/qt_sql.pri b/src/sql/qt_sql.pri index 6856b5730..f5bd94872 100644 --- a/src/sql/qt_sql.pri +++ b/src/sql/qt_sql.pri @@ -110,13 +110,13 @@ sql { mac { !contains( LIBS, .*odbc.* ) { - LIBS *= -liodbc + LIBS *= -lodbc } } unix { !contains( LIBS, .*odbc.* ) { - LIBS *= -liodbc + LIBS *= -lodbc } } diff --git a/translations/qt_zh-tw.ts b/translations/qt_zh-tw.ts index 8260fe4ee..0f0eaa865 100644 --- a/translations/qt_zh-tw.ts +++ b/translations/qt_zh-tw.ts @@ -115,7 +115,7 @@ </message> <message> <source>Menu</source> - <translation>Menu</translation> + <translation>選單</translation> </message> <message> <source>Help</source> @@ -337,7 +337,7 @@ </message> <message> <source>A&lpha channel:</source> - <translation>Alpha 色頻(&L):</translation> + <translation>透明色頻(&L):</translation> </message> <message> <source>&Basic colors</source> @@ -429,11 +429,11 @@ </message> <message> <source>Read: %1</source> - <translation>讀取: %1</translation> + <translation>讀取:%1</translation> </message> <message> <source>Write: %1</source> - <translation>寫入: %1</translation> + <translation>寫入:%1</translation> </message> <message> <source>Cancel</source> @@ -1194,7 +1194,7 @@ to </message> <message> <source>Customize...</source> - <translation>自訂...</translation> + <translation>自訂…</translation> </message> </context> <context> @@ -1264,7 +1264,7 @@ to </message> <message> <source><h3>About Qt</h3><p>This program uses Qt version %1.</p><p>Qt is a C++ toolkit for multiplatform GUI &amp; application development.</p><p>Qt provides single-source portability across MS&nbsp;Windows, Mac&nbsp;OS&nbsp;X, Linux, and all major commercial Unix variants.<br>Qt is also available for embedded devices.</p><p>Qt is a Trolltech product. See <tt>http://www.trolltech.com/qt/</tt> for more information.</p></source> - <translation><h3>關於 Qt</h3><p>本程式使用 Qt 版本 %1。</p><p>Qt 是用於多平台 GUI 和應用程式開發的 C++ 工具套件。</p><p>Qt 為 MS&nbsp;Windows、Mac&nbsp;OS&nbsp;X、Linux 和所有主要的商用 Unix 變異版本,提供跨平台的單一原始碼可攜性。<br>Qt 也可用於內嵌裝置。</p><p>Qt 是 Trolltech 的產品。如需詳細資訊,請參閱 <tt>http://www.trolltech.com/qt/</tt>。</p></translation> + <translation><h3>關於 Qt</h3><p>本程式使用 Qt 版本 %1。</p><p>Qt 是用於多平臺 GUI 和應用程式開發的 C++ 工具套件。</p><p>Qt 為 MS&nbsp;Windows、Mac&nbsp;OS&nbsp;X、Linux 和所有主要的商用 Unix 變異版本,提供跨平臺的單一原始碼可攜性。<br>Qt 也可用於內嵌裝置。</p><p>Qt 是 Trolltech 的產品。如需詳細資訊,請參閱 <tt>http://www.trolltech.com/qt/</tt>。</p></translation> </message> </context> <context> @@ -1282,7 +1282,7 @@ to </message> <message> <source>Aliases: %1</source> - <translation>別名: %1</translation> + <translation>別名:%1</translation> </message> <message> <source>unknown</source> @@ -1338,7 +1338,7 @@ to </message> <message> <source>Browse...</source> - <translation>瀏覽...</translation> + <translation>瀏覽…</translation> </message> <message> <source>Options</source> @@ -1386,123 +1386,123 @@ to </message> <message> <source>A0 (841 x 1189 mm)</source> - <translation>A0 (841 x 1189 mm)</translation> + <translation>A0 (841 x 1189 公釐)</translation> </message> <message> <source>A1 (594 x 841 mm)</source> - <translation>A1 (594 x 841 mm)</translation> + <translation>A1 (594 x 841 公釐)</translation> </message> <message> <source>A2 (420 x 594 mm)</source> - <translation>A2 (420 x 594 mm)</translation> + <translation>A2 (420 x 594 公釐)</translation> </message> <message> <source>A3 (297 x 420 mm)</source> - <translation>A3 (297 x 420 mm)</translation> + <translation>A3 (297 x 420 公釐)</translation> </message> <message> <source>A4 (210x297 mm, 8.26x11.7 inches)</source> - <translation>A4 (210x297 mm,8.26x11.7 英吋)</translation> + <translation>A4 (210x297 公釐,8.26x11.7 英吋)</translation> </message> <message> <source>A5 (148 x 210 mm)</source> - <translation>A5 (148 x 210 mm)</translation> + <translation>A5 (148 x 210 公釐)</translation> </message> <message> <source>A6 (105 x 148 mm)</source> - <translation>A6 (105 x 148 mm)</translation> + <translation>A6 (105 x 148 公釐)</translation> </message> <message> <source>A7 (74 x 105 mm)</source> - <translation>A7 (74 x 105 mm)</translation> + <translation>A7 (74 x 105 公釐)</translation> </message> <message> <source>A8 (52 x 74 mm)</source> - <translation>A8 (52 x 74 mm)</translation> + <translation>A8 (52 x 74 公釐)</translation> </message> <message> <source>A9 (37 x 52 mm)</source> - <translation>A9 (37 x 52 mm)</translation> + <translation>A9 (37 x 52 公釐)</translation> </message> <message> <source>B0 (1000 x 1414 mm)</source> - <translation>B0 (1000 x 1414 mm)</translation> + <translation>B0 (1000 x 1414 公釐)</translation> </message> <message> <source>B1 (707 x 1000 mm)</source> - <translation>B1 (707 x 1000 mm)</translation> + <translation>B1 (707 x 1000 公釐)</translation> </message> <message> <source>B2 (500 x 707 mm)</source> - <translation>B2 (500 x 707 mm)</translation> + <translation>B2 (500 x 707 公釐)</translation> </message> <message> <source>B3 (353 x 500 mm)</source> - <translation>B3 (353 x 500 mm)</translation> + <translation>B3 (353 x 500 公釐)</translation> </message> <message> <source>B4 (250 x 353 mm)</source> - <translation>B4 (250 x 353 mm)</translation> + <translation>B4 (250 x 353 公釐)</translation> </message> <message> <source>B5 (176 x 250 mm, 6.93x9.84 inches)</source> - <translation>B5 (176 x 250 mm,6.93x9.84 英吋)</translation> + <translation>B5 (176 x 250 公釐,6.93x9.84 英吋)</translation> </message> <message> <source>B6 (125 x 176 mm)</source> - <translation>B6 (125 x 176 mm)</translation> + <translation>B6 (125 x 176 公釐)</translation> </message> <message> <source>B7 (88 x 125 mm)</source> - <translation>B7 (88 x 125 mm)</translation> + <translation>B7 (88 x 125 公釐)</translation> </message> <message> <source>B8 (62 x 88 mm)</source> - <translation>B8 (62 x 88 mm)</translation> + <translation>B8 (62 x 88 公釐)</translation> </message> <message> <source>B9 (44 x 62 mm)</source> - <translation>B9 (44 x 62 mm)</translation> + <translation>B9 (44 x 62 公釐)</translation> </message> <message> <source>B10 (31 x 44 mm)</source> - <translation>B10 (31 x 44 mm)</translation> + <translation>B10 (31 x 44 公釐)</translation> </message> <message> <source>C5E (163 x 229 mm)</source> - <translation>C5E (163 x 229 mm)</translation> + <translation>C5E (163 x 229 公釐)</translation> </message> <message> <source>DLE (110 x 220 mm)</source> - <translation>DLE (110 x 220 mm)</translation> + <translation>DLE (110 x 220 公釐)</translation> </message> <message> <source>Executive (7.5x10 inches, 191x254 mm)</source> - <translation>Executive (7.5x10 英吋,191x254 mm)</translation> + <translation>Executive (7.5x10 英吋,191x254 公釐)</translation> </message> <message> <source>Folio (210 x 330 mm)</source> - <translation>Folio (210 x 330 mm)</translation> + <translation>Folio (210 x 330 公釐)</translation> </message> <message> <source>Ledger (432 x 279 mm)</source> - <translation>Ledger (432 x 279 mm)</translation> + <translation>Ledger (432 x 279 公釐)</translation> </message> <message> <source>Legal (8.5x14 inches, 216x356 mm)</source> - <translation>Legal (8.5x14 英吋,216x356 mm)</translation> + <translation>Legal (8.5x14 英吋,216x356 公釐)</translation> </message> <message> <source>Letter (8.5x11 inches, 216x279 mm)</source> - <translation>Letter (8.5x11 英吋,216x279 mm)</translation> + <translation>Letter (8.5x11 英吋,216x279 公釐)</translation> </message> <message> <source>Tabloid (279 x 432 mm)</source> - <translation>Tabloid (279 x 432 mm)</translation> + <translation>Tabloid (279 x 432 公釐)</translation> </message> <message> <source>US Common #10 Envelope (105 x 241 mm)</source> - <translation>美國一般 10 號信封 (105 x 241 mm)</translation> + <translation>美國一般 10 號信封 (105 x 241 公釐)</translation> </message> <message> <source>Setup Printer</source> @@ -1691,7 +1691,7 @@ to <name>QToolBar</name> <message> <source>More...</source> - <translation>其他...</translation> + <translation>其他…</translation> </message> </context> <context> @@ -1811,7 +1811,7 @@ to </message> <message> <source>&Help</source> - <translation>說明(&H)</translation> + <translation>求助(&H)</translation> </message> </context> <context> @@ -1988,7 +1988,7 @@ to </message> <message> <source>Paste special...</source> - <translation>選擇性貼上...</translation> + <translation>選擇性貼上…</translation> </message> <message> <source>Clear</source> |