~ubuntu-branches/ubuntu/vivid/youker-assistant/vivid-proposed

« back to all changes in this revision

Viewing changes to component/autogroup.cpp

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2015-03-24 21:12:41 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20150324211241-kkya07ipbipy88fj
Tags: 2.0.2-0ubuntu1
Deal with incosistency of system info and autostart

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
AutoGroup::AutoGroup(QWidget *parent) :
25
25
    QWidget(parent)
26
26
{
27
 
    this->resize(400, 50);
 
27
    this->resize(560, 50);
 
28
    splitlabel = new QLabel(this);
 
29
    splitlabel->setGeometry(QRect(0, this->height(), this->width(), 1));
 
30
    splitlabel->setStyleSheet("QLabel{background:#aaaaaa;}");
28
31
    logo_label = new QLabel();
29
32
    name_label = new QLabel();
30
33
    comment_label = new QLabel();
32
35
    connect(switcher, SIGNAL(clicked()), this, SIGNAL(autoStatusChange()));
33
36
 
34
37
    QVBoxLayout *v_layout = new QVBoxLayout();
 
38
    v_layout->addStretch();
35
39
    v_layout->addWidget(name_label);
36
40
    v_layout->addWidget(comment_label);
 
41
    v_layout->addStretch();
 
42
    v_layout->setSpacing(5);
 
43
    v_layout->setMargin(0);
 
44
    v_layout->setContentsMargins(0,0,0,0);
37
45
    QHBoxLayout *h_layout = new QHBoxLayout();
38
46
    h_layout->addWidget(logo_label);
39
47
    h_layout->addLayout(v_layout);