Changeset View
Changeset View
Standalone View
Standalone View
test/tagwidgettest.cpp
Show All 30 Lines | 30 | { | |||
---|---|---|---|---|---|
31 | m_tagWidget = new Baloo::TagWidget(this); | 31 | m_tagWidget = new Baloo::TagWidget(this); | ||
32 | QVBoxLayout* lay = new QVBoxLayout(this); | 32 | QVBoxLayout* lay = new QVBoxLayout(this); | ||
33 | lay->addWidget(m_tagWidget); | 33 | lay->addWidget(m_tagWidget); | ||
34 | connect(m_tagWidget, SIGNAL(tagClicked(QString)), | 34 | connect(m_tagWidget, SIGNAL(tagClicked(QString)), | ||
35 | this, SLOT(slotTagClicked(QString))); | 35 | this, SLOT(slotTagClicked(QString))); | ||
36 | connect(m_tagWidget, SIGNAL(selectionChanged(QStringList)), | 36 | connect(m_tagWidget, SIGNAL(selectionChanged(QStringList)), | ||
37 | this, SLOT(slotSelectionChanged(QStringList))); | 37 | this, SLOT(slotSelectionChanged(QStringList))); | ||
38 | 38 | | |||
39 | QCheckBox* box = new QCheckBox( "Align Right", this ); | 39 | QCheckBox* box = new QCheckBox(QStringLiteral("Align Right"), this ); | ||
40 | connect(box, SIGNAL(toggled(bool)), this, SLOT(alignRight(bool))); | 40 | connect(box, SIGNAL(toggled(bool)), this, SLOT(alignRight(bool))); | ||
41 | lay->addWidget(box); | 41 | lay->addWidget(box); | ||
42 | 42 | | |||
43 | box = new QCheckBox( "Read only", this ); | 43 | box = new QCheckBox(QStringLiteral("Read only"), this ); | ||
44 | connect(box, SIGNAL(toggled(bool)), this, SLOT(setReadOnly(bool))); | 44 | connect(box, SIGNAL(toggled(bool)), this, SLOT(setReadOnly(bool))); | ||
45 | lay->addWidget(box); | 45 | lay->addWidget(box); | ||
46 | } | 46 | } | ||
47 | 47 | | |||
48 | TagWidgetTest::~TagWidgetTest() | 48 | TagWidgetTest::~TagWidgetTest() | ||
49 | { | 49 | { | ||
50 | } | 50 | } | ||
51 | 51 | | |||
Show All 27 Lines |