Ignore:
Timestamp:
Sep 5, 2006, 1:31:01 AM (19 years ago)
Author:
dmik
Message:

UI: Misc changes:

  • Added OS/2-related definitions.
  • On all platforms but Mac, the main (roster) window will be minimized (instead of closing) when Esc is pressed, but the doclet window is disabled.
File:
1 edited

Legend:

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

    r2 r19  
    449449void MainWin::setUseDock(bool use)
    450450{
     451#ifdef Q_WS_PM
     452        /// @todo (dmik) disable the docklet until the xCenter plugin is implemented
     453        //  (this ifdef is necessary in order to share the same config between
     454        //  different platforms where the Use Docklet option may be set to true.
     455        return;
     456#else   
    451457        if(use == false || (d->tray && option.isWMDock != d->tray->isWMDock())) {
    452458                if(d->tray) {
     
    478484
    479485        d->tray->show();
     486#endif 
    480487}
    481488
     
    688695void MainWin::actReadmeActivated ()
    689696{
    690 #ifdef Q_WS_WIN
     697#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
    691698        ShowTextDlg *w = new ShowTextDlg(g.pathBase + "/readme.txt");
    692699#else
     
    868875#endif
    869876
    870         if(allowed && closekey) {
    871                 close();
     877        if(closekey) {
     878#ifdef Q_WS_MAC
     879                if(allowed) {
     880                        close();
     881                        e->accept();
     882                        return;
     883                }
     884#else                   
     885                if(allowed)
     886                        close();
     887                else
     888                        showMinimized();
    872889                e->accept();
    873890                return;
     891#endif
    874892        }
    875893
Note: See TracChangeset for help on using the changeset viewer.