Ignore:
Timestamp:
07/24/14 06:41:54 (5 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.3, releng/10.1
Children:
1891777
Parents:
733da14
Message:

Update lumina-desktop to use the new abilities in LuminaOS instead of the GLobals.h file. Now all the OS-specific stuff is contained in a single location.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lumina/lumina-desktop/panel-plugins/systemtray/LSysTray.cpp

    rc78ef7c r9d0ec76  
    1010  frame = new QFrame(this); 
    1111  frame->setContentsMargins(0,0,0,0); 
    12   frame->setStyleSheet("QFrame{ background: black; border: 1px solid grey; border-radius: 5px; }"); 
     12  frame->setStyleSheet("QFrame{ background: black; border: 1px solid transparent; border-radius: 5px; }"); 
    1313  LI = new QBoxLayout( this->layout()->direction(), this); 
    1414    frame->setLayout(LI); 
     
    6464    //qDebug() << " - New Icon"; 
    6565    TrayIcon *cont = new TrayIcon(this); 
     66      QCoreApplication::processEvents(); 
    6667      connect(cont, SIGNAL(AppClosed()), this, SLOT(trayAppClosed()) ); 
    6768      connect(cont, SIGNAL(AppAttached()), this, SLOT(updateStatus()) ); 
     
    7576        this->setMaximumSize(10000, trayIcons.length()*this->width()); 
    7677      } 
     78      QCoreApplication::processEvents(); 
    7779      cont->attachApp(win); 
    78     //this->layout()->update(); //make sure there is no blank space 
     80    LI->update(); //make sure there is no blank space 
    7981  } 
    8082} 
     
    8284void LSysTray::updateStatus(){ 
    8385  qDebug() << "System Tray: Client Attached"; 
    84   this->layout()->update(); //make sure there is no blank space 
     86  LI->update(); //make sure there is no blank space 
    8587  //qDebug() << " - Items:" << trayIcons.length(); 
    8688} 
     
    9395      LI->removeWidget(cont); 
    9496      delete cont; 
     97      QCoreApplication::processEvents(); 
    9598    } 
    9699  } 
Note: See TracChangeset for help on using the changeset viewer.