Ignore:
Timestamp:
May 29, 2013 5:40:22 AM (11 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
2f31e48
Parents:
3f317b9
git-author:
Ken Moore <ken@…> (05/29/13 05:37:05)
git-committer:
Ken Moore <ken@…> (05/29/13 05:40:22)
Message:

Get the largeItemWidget to accept mouse clicks anywhere in the widget. Thanks to Claudio L. for sending in a patch to get this working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/largeItemWidget.h

    r78fa8b2 r3ec5e7f  
    4949  public: 
    5050    LargeItemWidget(QString appID, QString name, QString description, QString icon) : QWidget(){ 
    51       QGridLayout *layout = new QGridLayout; 
     51 
    5252      //Create the toolbutton 
    5353      QToolButton *button = new QToolButton(); 
     
    6262        appDesc->setWordWrap(TRUE); 
    6363      //Add the items to the widget 
     64      QGridLayout *layout = new QGridLayout; 
    6465      layout->addWidget(button,0,0,2,1); 
    6566      layout->addWidget(appName,0,1); 
    6667      layout->addWidget(appDesc,1,1); 
    6768      this->setLayout(layout); 
     69       
    6870      //Save the app identifier 
    6971      uniqueAppID=appID; 
    70       connect(button,SIGNAL(triggered(QAction*)), this, SLOT(sendSignal()) ); 
     72      connect(button,SIGNAL(clicked()), this, SLOT(sendSignal()) ); 
    7173    } 
    7274    virtual ~LargeItemWidget(){} 
     75     
     76  protected: 
     77    void mousePressEvent(QMouseEvent *ev){ sendSignal(); }   
    7378  
    7479           
Note: See TracChangeset for help on using the changeset viewer.