ipsservices/nmipssettings/src/nmipssettingslabeledcombobox.cpp
changeset 68 83cc6bae1de8
parent 40 2c62ef3caffd
equal deleted inserted replaced
67:459da34cdb45 68:83cc6bae1de8
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #include <qgraphicslinearlayout.h>
    18 #include <QGraphicsLinearLayout>
    19 #include <hbcombobox.h>
    19 #include <HbComboBox>
    20 #include <hblabel.h>
    20 #include <HbLabel>
    21 
    21 
    22 #include "nmipssettingslabeledcombobox.h"
    22 #include "nmipssettingslabeledcombobox.h"
    23 
    23 
    24 /*!
    24 /*!
    25     \class NmIpsSettingsLabelItem
    25     \class NmIpsSettingsLabelItem
    37     QGraphicsItem *parent, Qt::WindowFlags wFlags)
    37     QGraphicsItem *parent, Qt::WindowFlags wFlags)
    38 : HbWidget(parent, wFlags)
    38 : HbWidget(parent, wFlags)
    39 {
    39 {
    40     // Create widget layout.
    40     // Create widget layout.
    41     QGraphicsLinearLayout* layout = new QGraphicsLinearLayout(Qt::Vertical);
    41     QGraphicsLinearLayout* layout = new QGraphicsLinearLayout(Qt::Vertical);
       
    42     layout->setContentsMargins(0,0,0,0);
    42     this->setLayout(layout); // Takes ownership
    43     this->setLayout(layout); // Takes ownership
    43 
    44 
    44     // Create combobox.
    45     // Create combobox.
    45     mComboBox = new HbComboBox();
    46     mComboBox = new HbComboBox();
    46     layout->addItem(mComboBox); // Takes ownership
    47     layout->addItem(mComboBox); // Takes ownership