Darrell Anderson 12 years ago
commit af8fdcf1ca

@ -17,7 +17,7 @@ mac {
unix {
OBJECTS_DIR = .obj
!contains( LIBS, .*odbc.* ) {
LIBS *= -liodbc
LIBS *= -lodbc
}
}

@ -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 ) {

@ -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 };

@ -110,13 +110,13 @@ sql {
mac {
!contains( LIBS, .*odbc.* ) {
LIBS *= -liodbc
LIBS *= -lodbc
}
}
unix {
!contains( LIBS, .*odbc.* ) {
LIBS *= -liodbc
LIBS *= -lodbc
}
}

@ -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&amp;lpha channel:</source>
<translation>Alpha (&amp;L)</translation>
<translation>(&amp;L)</translation>
</message>
<message>
<source>&amp;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>&lt;h3&gt;About Qt&lt;/h3&gt;&lt;p&gt;This program uses Qt version %1.&lt;/p&gt;&lt;p&gt;Qt is a C++ toolkit for multiplatform GUI &amp;amp; application development.&lt;/p&gt;&lt;p&gt;Qt provides single-source portability across MS&amp;nbsp;Windows, Mac&amp;nbsp;OS&amp;nbsp;X, Linux, and all major commercial Unix variants.&lt;br&gt;Qt is also available for embedded devices.&lt;/p&gt;&lt;p&gt;Qt is a Trolltech product. See &lt;tt&gt;http://www.trolltech.com/qt/&lt;/tt&gt; for more information.&lt;/p&gt;</source>
<translation>&lt;h3&gt; Qt&lt;/h3&gt;&lt;p&gt;使 Qt %1&lt;/p&gt;&lt;p&gt;Qt GUI C++ &lt;/p&gt;&lt;p&gt;Qt MS&amp;nbsp;WindowsMac&amp;nbsp;OS&amp;nbsp;XLinux Unix &lt;br&gt;Qt &lt;/p&gt;&lt;p&gt;Qt Trolltech &lt;tt&gt;http://www.trolltech.com/qt/&lt;/tt&gt;&lt;/p&gt;</translation>
<translation>&lt;h3&gt; Qt&lt;/h3&gt;&lt;p&gt;使 Qt %1&lt;/p&gt;&lt;p&gt;Qt GUI C++ &lt;/p&gt;&lt;p&gt;Qt MS&amp;nbsp;WindowsMac&amp;nbsp;OS&amp;nbsp;XLinux Unix &lt;br&gt;Qt &lt;/p&gt;&lt;p&gt;Qt Trolltech &lt;tt&gt;http://www.trolltech.com/qt/&lt;/tt&gt;&lt;/p&gt;</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 mm8.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 mm6.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>&amp;Help</source>
<translation>(&amp;H)</translation>
<translation>(&amp;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>

Loading…
Cancel
Save