ipsservices/nmipssettings/src/nmipssettingslabeledcombobox.cpp
changeset 75 47d84de1c893
parent 27 9ba4404ef423
equal deleted inserted replaced
72:64e38f08e49c 75:47d84de1c893
    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