equal
deleted
inserted
replaced
68 |
68 |
69 QVBoxLayout * gbTLayout = new QVBoxLayout(gbThemes); |
69 QVBoxLayout * gbTLayout = new QVBoxLayout(gbThemes); |
70 lwThemes = new QListWidget(this); |
70 lwThemes = new QListWidget(this); |
71 lwThemes->setMinimumHeight(30); |
71 lwThemes->setMinimumHeight(30); |
72 lwThemes->setFixedWidth(100); |
72 lwThemes->setFixedWidth(100); |
73 for (int i = 0; i < Themes->size(); ++i) |
73 for (int i = 0; i < Themes->size(); ++i) { |
74 lwThemes->addItem(Themes->at(i)); |
74 QListWidgetItem * lwi = new QListWidgetItem(); |
|
75 lwi->setText(Themes->at(i)); |
|
76 lwi->setTextAlignment(Qt::AlignHCenter); |
|
77 lwThemes->addItem(lwi); |
|
78 } |
75 |
79 |
76 gbTLayout->addWidget(lwThemes); |
80 gbTLayout->addWidget(lwThemes); |
77 lwThemes->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Minimum); |
81 lwThemes->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Minimum); |
78 |
82 |
79 |
83 |