- Timestamp:
- Sep 22, 2006, 1:05:38 AM (18 years ago)
- Location:
- psi/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
psi/trunk/src/common.cpp
r55 r64 1951 1951 #ifdef Q_WS_WIN 1952 1952 w->raise(); 1953 if (grabFocus) 1953 if (grabFocus) { 1954 1954 w->setActiveWindow(); 1955 } else { 1956 if (GetTopWindow(NULL) != w->winId()) { 1957 // On Win32, raise() cannot move a window on top of the currently 1958 // active window w/o making the former active. To overcome this, 1959 // we use a trick by first making the window floating on top and 1960 // then restoring the normal behavior. 1961 SetWindowPos(w->winId(), HWND_TOPMOST, 0, 0, 0, 0, 1962 SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); 1963 SetWindowPos(w->winId(), HWND_NOTOPMOST, 0, 0, 0, 0, 1964 SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); 1965 } 1966 } 1955 1967 #else 1956 1968 if(grabFocus) -
psi/trunk/src/mainwin.cpp
r57 r64 1088 1088 #endif 1089 1089 1090 #if defined(Q_WS_WIN) 1090 /// @todo (r=dmik) I don't fully understand what is this code good for, but 1091 // at least it doesn't do what it should (for example, if the roster window is 1092 // minimized, it won't be shown). Instead we use bringToFront() just like on 1093 // any other platform (the *fixed* version of bringToFront() seems to work ok). 1094 #if 0 && defined(Q_WS_WIN) 1091 1095 #include<windows.h> 1092 1096 void MainWin::showNoFocus() … … 1172 1176 void MainWin::showNoFocus() 1173 1177 { 1174 bringToFront(this); 1175 } 1176 1177 #endif 1178 #if defined(QT_ACCESSIBILITY_SUPPORT) 1179 QAccessible::updateAccessibility( this, 0, QAccessible::ObjectShow ); 1180 #endif 1181 bringToFront(this, false); 1182 } 1183 1184 #endif -
psi/trunk/src/options/opt_events.cpp
r2 r64 45 45 "Set this option if you want them to popup anyway.")); 46 46 QWhatsThis::add(d->ck_raise, 47 tr("Makes new incoming events bring the main window to the foreground.")); 47 tr("Makes new incoming events bring the main window to the foreground." 48 " It does not take the keyboard focus, so it will not interfere with your work.")); 48 49 QWhatsThis::add(d->ck_ignoreNonRoster, 49 50 tr("Makes Psi ignore all incoming events from contacts"
Note:
See TracChangeset
for help on using the changeset viewer.