author | coredump <coredump> | 2003-11-27 12:39:18 (UTC) |
---|---|---|
committer | coredump <coredump> | 2003-11-27 12:39:18 (UTC) |
commit | d0bf022b91a6b8ae3ffef5438dc924823aacedb9 (patch) (unidiff) | |
tree | 90e6f93fde618a8b16a6970c86a33cdc0c18786f | |
parent | 51ca35ecb7e22fc564ffe62184d4a75aa8537b1d (diff) | |
download | opie-d0bf022b91a6b8ae3ffef5438dc924823aacedb9.zip opie-d0bf022b91a6b8ae3ffef5438dc924823aacedb9.tar.gz opie-d0bf022b91a6b8ae3ffef5438dc924823aacedb9.tar.bz2 |
Bugfix: Headline is visible again with matchin BG image.
Bugfix: Don't open the InputMethod for a Zaurus, it's got a hardware
keyboard
-rw-r--r-- | core/opie-login/loginwindow.ui | 10 | ||||
-rw-r--r-- | core/opie-login/loginwindowimpl.cpp | 19 |
2 files changed, 18 insertions, 11 deletions
diff --git a/core/opie-login/loginwindow.ui b/core/opie-login/loginwindow.ui index 245e942..10c7d80 100644 --- a/core/opie-login/loginwindow.ui +++ b/core/opie-login/loginwindow.ui | |||
@@ -6,17 +6,17 @@ | |||
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>LoginWindow</cstring> | 7 | <cstring>LoginWindow</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>460</width> | 14 | <width>456</width> |
15 | <height>341</height> | 15 | <height>341</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Login</string> | 20 | <string>Login</string> |
21 | </property> | 21 | </property> |
22 | <property> | 22 | <property> |
@@ -67,23 +67,23 @@ | |||
67 | <hsizetype>5</hsizetype> | 67 | <hsizetype>5</hsizetype> |
68 | <vsizetype>5</vsizetype> | 68 | <vsizetype>5</vsizetype> |
69 | </sizepolicy> | 69 | </sizepolicy> |
70 | </property> | 70 | </property> |
71 | <property stdset="1"> | 71 | <property stdset="1"> |
72 | <name>font</name> | 72 | <name>font</name> |
73 | <font> | 73 | <font> |
74 | <family>helvetica</family> | 74 | <family>helvetica</family> |
75 | <pointsize>18</pointsize> | 75 | <pointsize>36</pointsize> |
76 | <bold>1</bold> | 76 | <bold>1</bold> |
77 | </font> | 77 | </font> |
78 | </property> | 78 | </property> |
79 | <property stdset="1"> | 79 | <property stdset="1"> |
80 | <name>autoMask</name> | 80 | <name>autoMask</name> |
81 | <bool>true</bool> | 81 | <bool>false</bool> |
82 | </property> | 82 | </property> |
83 | <property stdset="1"> | 83 | <property stdset="1"> |
84 | <name>backgroundOrigin</name> | 84 | <name>backgroundOrigin</name> |
85 | <enum>ParentOrigin</enum> | 85 | <enum>ParentOrigin</enum> |
86 | </property> | 86 | </property> |
87 | <property stdset="1"> | 87 | <property stdset="1"> |
88 | <name>margin</name> | 88 | <name>margin</name> |
89 | <number>1</number> | 89 | <number>1</number> |
@@ -133,17 +133,17 @@ | |||
133 | <widget row="0" column="0" > | 133 | <widget row="0" column="0" > |
134 | <class>QLabel</class> | 134 | <class>QLabel</class> |
135 | <property stdset="1"> | 135 | <property stdset="1"> |
136 | <name>name</name> | 136 | <name>name</name> |
137 | <cstring>TextLabel1</cstring> | 137 | <cstring>TextLabel1</cstring> |
138 | </property> | 138 | </property> |
139 | <property stdset="1"> | 139 | <property stdset="1"> |
140 | <name>autoMask</name> | 140 | <name>autoMask</name> |
141 | <bool>true</bool> | 141 | <bool>false</bool> |
142 | </property> | 142 | </property> |
143 | <property stdset="1"> | 143 | <property stdset="1"> |
144 | <name>backgroundOrigin</name> | 144 | <name>backgroundOrigin</name> |
145 | <enum>ParentOrigin</enum> | 145 | <enum>ParentOrigin</enum> |
146 | </property> | 146 | </property> |
147 | <property stdset="1"> | 147 | <property stdset="1"> |
148 | <name>text</name> | 148 | <name>text</name> |
149 | <string>User</string> | 149 | <string>User</string> |
@@ -225,17 +225,17 @@ | |||
225 | <widget row="1" column="0" > | 225 | <widget row="1" column="0" > |
226 | <class>QLabel</class> | 226 | <class>QLabel</class> |
227 | <property stdset="1"> | 227 | <property stdset="1"> |
228 | <name>name</name> | 228 | <name>name</name> |
229 | <cstring>TextLabel2</cstring> | 229 | <cstring>TextLabel2</cstring> |
230 | </property> | 230 | </property> |
231 | <property stdset="1"> | 231 | <property stdset="1"> |
232 | <name>autoMask</name> | 232 | <name>autoMask</name> |
233 | <bool>true</bool> | 233 | <bool>false</bool> |
234 | </property> | 234 | </property> |
235 | <property stdset="1"> | 235 | <property stdset="1"> |
236 | <name>backgroundOrigin</name> | 236 | <name>backgroundOrigin</name> |
237 | <enum>ParentOrigin</enum> | 237 | <enum>ParentOrigin</enum> |
238 | </property> | 238 | </property> |
239 | <property stdset="1"> | 239 | <property stdset="1"> |
240 | <name>text</name> | 240 | <name>text</name> |
241 | <string>Password</string> | 241 | <string>Password</string> |
diff --git a/core/opie-login/loginwindowimpl.cpp b/core/opie-login/loginwindowimpl.cpp index 577cb41..330fac5 100644 --- a/core/opie-login/loginwindowimpl.cpp +++ b/core/opie-login/loginwindowimpl.cpp | |||
@@ -19,17 +19,17 @@ | |||
19 | : = ...= . :.=- You should have received a copy of the GNU | 19 | : = ...= . :.=- You should have received a copy of the GNU |
20 | -. .:....=;==+<; General Public License along with this file; | 20 | -. .:....=;==+<; General Public License along with this file; |
21 | -_. . . )=. = see the file COPYING. If not, write to the | 21 | -_. . . )=. = see the file COPYING. If not, write to the |
22 | -- :-=` Free Software Foundation, Inc., | 22 | -- :-=` Free Software Foundation, Inc., |
23 | 59 Temple Place - Suite 330, | 23 | 59 Temple Place - Suite 330, |
24 | Boston, MA 02111-1307, USA. | 24 | Boston, MA 02111-1307, USA. |
25 | 25 | ||
26 | */ | 26 | */ |
27 | 27 | #include <qpe/version.h> | |
28 | #include <qapplication.h> | 28 | #include <qapplication.h> |
29 | #include <qpushbutton.h> | 29 | #include <qpushbutton.h> |
30 | #include <qlayout.h> | 30 | #include <qlayout.h> |
31 | #include <qframe.h> | 31 | #include <qframe.h> |
32 | #include <qlineedit.h> | 32 | #include <qlineedit.h> |
33 | #include <qtimer.h> | 33 | #include <qtimer.h> |
34 | #include <qcombobox.h> | 34 | #include <qcombobox.h> |
35 | #include <qpixmap.h> | 35 | #include <qpixmap.h> |
@@ -73,26 +73,33 @@ LoginWindowImpl::LoginWindowImpl ( ) : LoginWindow ( 0, "LOGIN-WINDOW", WStyle_C | |||
73 | connect ( m_input, SIGNAL( inputToggled ( bool )), this, SLOT( calcMaxWindowRect ( ))); | 73 | connect ( m_input, SIGNAL( inputToggled ( bool )), this, SLOT( calcMaxWindowRect ( ))); |
74 | lay-> addWidget ( m_input ); | 74 | lay-> addWidget ( m_input ); |
75 | lay-> addStretch ( 10 ); | 75 | lay-> addStretch ( 10 ); |
76 | 76 | ||
77 | setActiveWindow ( ); | 77 | setActiveWindow ( ); |
78 | m_password-> setFocus ( ); | 78 | m_password-> setFocus ( ); |
79 | 79 | ||
80 | m_user-> insertStringList ( lApp-> allUsers ( )); | 80 | m_user-> insertStringList ( lApp-> allUsers ( )); |
81 | 81 | ||
82 | QTimer::singleShot ( 0, this, SLOT( showIM ( ))); | 82 | //there is no point in displaying the IM for a zaurus |
83 | if (ODevice::inst ( )-> series ( ) != Model_Zaurus){ | ||
84 | QTimer::singleShot ( 0, this, SLOT( showIM ( ))); | ||
85 | } | ||
83 | 86 | ||
84 | QString opiedir = ::getenv ( "OPIEDIR" ); | 87 | QString opiedir = ::getenv ( "OPIEDIR" ); |
85 | QPixmap bgpix ( opiedir + "/pics/launcher/opie-background.jpg" ); | 88 | QPixmap bgpix ( opiedir + "/pics/launcher/opie-background.jpg" ); |
86 | 89 | ||
87 | if ( !bgpix. isNull ( )) | 90 | if ( !bgpix. isNull ( )) { |
88 | setBackgroundPixmap ( bgpix ); | 91 | setBackgroundPixmap ( bgpix ); |
89 | 92 | m_caption-> setBackgroundPixmap ( bgpix); | |
90 | m_caption-> setText ( m_caption-> text ( ) + tr( "<center>%1 %2</center>" ). arg ( ODevice::inst ( )-> systemString ( )). arg ( ODevice::inst ( )-> systemVersionString ( ))); | 93 | TextLabel1-> setBackgroundPixmap ( bgpix); |
94 | TextLabel2-> setBackgroundPixmap ( bgpix); | ||
95 | } | ||
96 | |||
97 | m_caption-> setText ( tr("<center>Welcome to OPIE %1</center><center>& %2 %3</center>"). arg(QPE_VERSION). arg ( ODevice::inst ( )-> systemString ( )). arg ( ODevice::inst ( )-> systemVersionString ( ))); | ||
91 | 98 | ||
92 | Config cfg ( "opie-login" ); | 99 | Config cfg ( "opie-login" ); |
93 | cfg. setGroup ( "General" ); | 100 | cfg. setGroup ( "General" ); |
94 | QString last = cfg. readEntry ( "LastLogin" ); | 101 | QString last = cfg. readEntry ( "LastLogin" ); |
95 | 102 | ||
96 | if ( !last. isEmpty ( )) | 103 | if ( !last. isEmpty ( )) |
97 | m_user-> setEditText ( last ); | 104 | m_user-> setEditText ( last ); |
98 | 105 | ||