ganeswidgets/src/hgmediawall.cpp
changeset 0 89c329efa980
child 1 e48454f237ca
equal deleted inserted replaced
-1:000000000000 0:89c329efa980
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #include <hgwidgets/hgmediawall.h>
       
    19 #include "hgmediawall_p.h"
       
    20 #include "hgwidgets_p.h"
       
    21 #include "hgcoverflowcontainer.h"
       
    22 
       
    23 HgMediawall::HgMediawall(QGraphicsItem *parent ):
       
    24     HgWidget(new HgMediawallPrivate, parent)
       
    25 {
       
    26     Q_D(HgMediawall);
       
    27     d->q_ptr = this;
       
    28     d->init();
       
    29 }
       
    30 
       
    31 HgMediawall::~HgMediawall()
       
    32 {
       
    33 }
       
    34 
       
    35 /*!
       
    36     Sets the placement of the title.
       
    37 */
       
    38 void HgMediawall::setTitlePosition(LabelPosition position)
       
    39 {
       
    40     Q_D(HgMediawall);
       
    41     d->setTitlePosition(position);
       
    42 }
       
    43 
       
    44 /*!
       
    45     Returns the placement of the title.
       
    46 */
       
    47 HgMediawall::LabelPosition HgMediawall::titlePosition() const
       
    48 {
       
    49     Q_D(const HgMediawall);
       
    50     return d->titlePosition();
       
    51 }
       
    52 
       
    53 /*!
       
    54     Sets the placement of the description.
       
    55 */
       
    56 void HgMediawall::setDescriptionPosition(LabelPosition position)
       
    57 {
       
    58     Q_D(HgMediawall);
       
    59     d->setDescriptionPosition(position);
       
    60 }
       
    61 
       
    62 /*!
       
    63     Returns the placement of the description.
       
    64 */
       
    65 HgMediawall::LabelPosition HgMediawall::descriptionPosition() const
       
    66 {
       
    67     Q_D(const HgMediawall);
       
    68     return d->descriptionPosition();
       
    69 }
       
    70 
       
    71 /*!
       
    72     Sets the fontSpec property of the title.
       
    73 
       
    74     The font specification defines the font with a font role and optional
       
    75     other parameters.
       
    76 */
       
    77 void HgMediawall::setTitleFontSpec(const HbFontSpec &fontSpec)
       
    78 {
       
    79     Q_D(HgMediawall);
       
    80     d->setTitleFontSpec(fontSpec);
       
    81 }
       
    82 
       
    83 /*!
       
    84     Returns the fontSpec property of the title.
       
    85 */
       
    86 HbFontSpec HgMediawall::titleFontSpec() const
       
    87 {
       
    88     Q_D(const HgMediawall);
       
    89     return d->titleFontSpec();
       
    90 }
       
    91 
       
    92 /*!
       
    93     Sets the fontSpec property of the description.
       
    94 
       
    95     The font specification defines the font with a font role and optional
       
    96     other parameters.
       
    97 */
       
    98 void HgMediawall::setDescriptionFontSpec(const HbFontSpec &fontSpec)
       
    99 {
       
   100     Q_D(HgMediawall);
       
   101     d->setDescriptionFontSpec(fontSpec);
       
   102 }
       
   103 
       
   104 /*!
       
   105     Returns the fontSpec property of the description.
       
   106 */
       
   107 HbFontSpec HgMediawall::descriptionFontSpec() const
       
   108 {
       
   109     Q_D(const HgMediawall);
       
   110     return d->descriptionFontSpec();
       
   111 }
       
   112 
       
   113 // EOF