diff widgets/ListInputDialog.cpp @ 231:512ead25e842

* Grey out exporting entire pane as image if it will be too wide for QImage
author Chris Cannam
date Thu, 15 Mar 2007 11:34:39 +0000
parents 387f2f6fc333
children e6d0b097d102
line wrap: on
line diff
--- a/widgets/ListInputDialog.cpp	Thu Mar 15 11:34:20 2007 +0000
+++ b/widgets/ListInputDialog.cpp	Thu Mar 15 11:34:39 2007 +0000
@@ -46,6 +46,10 @@
 
     vbox->addStretch(1);
 
+    m_footnote = new QLabel;
+    vbox->addWidget(m_footnote);
+    m_footnote->hide();
+
     QHBoxLayout *hbox = new QHBoxLayout;
     vbox->addLayout(hbox, Qt::AlignRight);
 
@@ -81,6 +85,19 @@
     return "";
 }
 
+void
+ListInputDialog::setItemAvailability(int item, bool available)
+{
+    m_radioButtons[item]->setEnabled(available);
+}
+
+void
+ListInputDialog::setFootnote(QString footnote)
+{
+    m_footnote->setText(footnote);
+    m_footnote->show();
+}
+
 QString
 ListInputDialog::getItem(QWidget *parent, const QString &title,
                          const QString &label, const QStringList &list,