perfapps/perfmon/ui/hb/datapopup/src/perfmondatapopupdialog.cpp
changeset 52 36d60d12b4af
parent 51 b048e15729d6
child 53 819e59dfc032
equal deleted inserted replaced
51:b048e15729d6 52:36d60d12b4af
   129 }
   129 }
   130 
   130 
   131 
   131 
   132 void PerfMonDataPopupDialog::mousePressEvent(QGraphicsSceneMouseEvent *event)
   132 void PerfMonDataPopupDialog::mousePressEvent(QGraphicsSceneMouseEvent *event)
   133 {
   133 {
   134     Q_UNUSED(event);
   134     HbDialog::mousePressEvent(event);
   135 
   135     
   136     QVariantMap data;
   136     QVariantMap data;
   137     data["mouseEvent"] = "press";
   137     data["mouseEvent"] = "press";
   138     emit deviceDialogData(data);
   138     emit deviceDialogData(data);
   139 }
   139 }
   140 
   140 
   158 }
   158 }
   159 
   159 
   160 void PerfMonDataPopupDialog::setLines(const QStringList &lines)
   160 void PerfMonDataPopupDialog::setLines(const QStringList &lines)
   161 {
   161 {
   162     mWidget->setLines(lines);
   162     mWidget->setLines(lines);
       
   163     setPreferredSize(mWidget->preferredWidth()+30,mWidget->preferredHeight()+30);
   163 }
   164 }
   164 
   165 
   165 void PerfMonDataPopupDialog::reposition()
   166 void PerfMonDataPopupDialog::reposition()
   166 {
   167 {
   167     if (mainWindow()) {
   168     if (mainWindow()) {
   176                 setPreferredPos(QPointF(screenSize.width() / 2, screenSize.height()),
   177                 setPreferredPos(QPointF(screenSize.width() / 2, screenSize.height()),
   177                                 HbPopup::BottomEdgeCenter);
   178                                 HbPopup::BottomEdgeCenter);
   178                 break;
   179                 break;
   179         }
   180         }
   180     }
   181     }
       
   182     resize(0,0);
   181 }
   183 }