Mercurial > hg > easaier-soundaccess
comparison widgets/InfoWidget.cpp @ 251:2ea04b3f9141
support new queries and timeline info
author | lbajardsilogic |
---|---|
date | Thu, 12 Jun 2008 10:17:48 +0000 |
parents | ec2ca3fbd957 |
children | 057856cf81a2 |
comparison
equal
deleted
inserted
replaced
250:c12986afc03c | 251:2ea04b3f9141 |
---|---|
129 m_infoLayout->addWidget(proper, row, 2,1,1); | 129 m_infoLayout->addWidget(proper, row, 2,1,1); |
130 m_infoLayout->addWidget(value, row, 4,1,1); | 130 m_infoLayout->addWidget(value, row, 4,1,1); |
131 row++; | 131 row++; |
132 } | 132 } |
133 }*/ | 133 }*/ |
134 | 134 if (iterInfo->first == "event_label") |
135 proper = new QLabel(iterInfo->first); | 135 { |
136 value = new QLabel(iterInfo->second->join(" ")); | 136 proper = new QLabel(iterInfo->first); |
137 //connect the main window to the linkActivated signal | 137 value = new QLabel(iterInfo->second->join(" - ")); |
138 //connect(value, SIGNAL(linkActivated(QString)), MainWindow::instance(), SLOT(importEasaierLayer(QString))); | 138 QString label; |
139 | 139 QStringList::const_iterator constIterator; |
140 for (constIterator = iterInfo->second->constBegin(); constIterator != iterInfo->second->constEnd(); ++constIterator) | |
141 { | |
142 label += "<a href=\""; | |
143 label += *constIterator; | |
144 label += "\">"; | |
145 label += *constIterator; | |
146 label += "</a> - "; | |
147 } | |
148 value->setText(label); | |
149 //connect the main window to the linkActivated signal | |
150 connect(value, SIGNAL(linkActivated(QString)), MainWindow::instance(), SLOT(importEasaierLayer(QString))); | |
151 } | |
152 else { | |
153 proper = new QLabel(iterInfo->first); | |
154 value = new QLabel(iterInfo->second->join(" - ")); | |
155 } | |
140 m_infoLayout->addWidget(proper, row, 2,1,1); | 156 m_infoLayout->addWidget(proper, row, 2,1,1); |
141 m_infoLayout->addWidget(value, row, 4,1,1); | 157 m_infoLayout->addWidget(value, row, 4,1,1); |
142 row++; | 158 row++; |
143 } | 159 } |
144 | 160 |