controlpanelplugins/themeplugin/src/cpthemepreview.cpp
changeset 24 f5dfdd5e4a1b
parent 17 4a9568303383
child 25 19394c261aa5
equal deleted inserted replaced
17:4a9568303383 24:f5dfdd5e4a1b
    24 #include <hbicon.h>
    24 #include <hbicon.h>
    25 #include <hbaction.h>
    25 #include <hbaction.h>
    26 #include <hblabel.h>
    26 #include <hblabel.h>
    27 #include <hbiconitem.h>
    27 #include <hbiconitem.h>
    28 #include <hbmainwindow.h>
    28 #include <hbmainwindow.h>
       
    29 #include <HbParameterLengthLimiter>
    29 
    30 
    30 #include "cpthemepreview.h"
    31 #include "cpthemepreview.h"
    31 
    32 
    32 /*!
    33 /*!
    33     \class CpThemePreview
    34     \class CpThemePreview
    49     //Create the layout and add heading and and preview icon to the layout.
    50     //Create the layout and add heading and and preview icon to the layout.
    50     QGraphicsLinearLayout* layout = new QGraphicsLinearLayout(Qt::Vertical);
    51     QGraphicsLinearLayout* layout = new QGraphicsLinearLayout(Qt::Vertical);
    51 
    52 
    52     
    53     
    53     //setup the heading.
    54     //setup the heading.
    54     //TODO: translation of string  hbTrId("txt_cp_title_preview_1")
    55     QString themeHeading = HbParameterLengthLimiter("txt_cp_title_preview_1").arg(mTheme.name);   
    55     QString themeHeading = tr("Preview: ") + mTheme.name;
       
    56     HbLabel* label = new HbLabel(themeHeading, this);
    56     HbLabel* label = new HbLabel(themeHeading, this);
    57     label->setFontSpec(HbFontSpec(HbFontSpec::Primary));
       
    58    
    57    
    59     layout->addItem(label);
    58     layout->addItem(label);
    60     
    59     
    61     layout->setAlignment(layout->itemAt(0), Qt::AlignTop);
    60     layout->setAlignment(layout->itemAt(0), Qt::AlignTop);
    62     
    61