Ignore:
Timestamp:
Sep 22, 2006, 1:05:38 AM (19 years ago)
Author:
dmik
Message:

Psi: Fixed "bring to front" functionality:

  • Roster window took the keyboard focus if the "Raise Roster Window On New Event" was set.
  • [Win32] bringToFront() didn't actually put the window on top of the active window (as on all other platforms).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • psi/trunk/src/mainwin.cpp

    r57 r64  
    10881088#endif
    10891089
    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)
    10911095#include<windows.h>
    10921096void MainWin::showNoFocus()
     
    11721176void MainWin::showNoFocus()
    11731177{
    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
Note: See TracChangeset for help on using the changeset viewer.