make price label bigger
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sat, 11 Dec 2010 21:14:23 +0000 (21:14 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sat, 11 Dec 2010 21:14:23 +0000 (21:14 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@659 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

src/mwin/carttab.cpp

index a2cda8f..a2787a2 100644 (file)
@@ -40,6 +40,8 @@ MCartTab::MCartTab(QString pk)
        
        QVBoxLayout*vl;QHBoxLayout*hl;
        QPushButton*p;
+       QLabel*lab;
+       QFrame*frm;
        
        //Shopping Cart Tab
        setLayout(vl=new QVBoxLayout);
@@ -65,12 +67,17 @@ MCartTab::MCartTab(QString pk)
        hl2->addSpacing(15);
        hl2->addWidget(p=new QPushButton(tr("Remove Line")),0);
        connect(p,SIGNAL(clicked()),this,SLOT(cartRemoveItem()));
+       vl2->addWidget(frm=new QFrame,0);
+       frm->setFrameShape(QFrame::HLine);
        vl2->addLayout(hl2=new QHBoxLayout,0);
-       hl2->addWidget(new QLabel(tr("Total Price Sum:")));
+       hl2->addWidget(lab=new QLabel(tr("Total Price Sum:")));
+       QFont fnt=lab->font();
+       fnt.setPointSizeF(fnt.pointSizeF()*1.5);
+       lab->setFont(fnt);
        hl2->addWidget(price=new QLabel("0.0"));
+       price->setFont(fnt);
        hl2->addStretch(1);
        
-       QFrame*frm;
        hl->addWidget(frm=new QFrame,0);
        frm->setFrameShape(QFrame::VLine);
        hl->addLayout(vl2=new QVBoxLayout,1);