summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/CAnnoEdit.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/CAnnoEdit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/CAnnoEdit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/CAnnoEdit.h b/noncore/apps/opie-reader/CAnnoEdit.h
index 3cc9f78..f320061 100644
--- a/noncore/apps/opie-reader/CAnnoEdit.h
+++ b/noncore/apps/opie-reader/CAnnoEdit.h
@@ -23,24 +23,25 @@ class CAnnoEdit : public QWidget
void setAnno(const QString& name)
{
m_anno->setText(name);
m_anno->setEdited(false);
}
bool edited() { return m_anno->edited(); }
CAnnoEdit(QWidget *parent=0, const char *name=0, WFlags f = 0) :
QWidget(parent, name, f)
{
QVBoxLayout* grid = new QVBoxLayout(this);
m_name = new QLineEdit(this, "Name");
m_anno = new QMultiLineEdit(this, "Annotation");
+ m_anno->setWordWrap(QMultiLineEdit::WidgetWidth);
QPushButton* exitButton = new QPushButton("Okay", this);
connect(exitButton, SIGNAL( released() ), this, SLOT( slotOkay() ) );
QPushButton* cancelButton = new QPushButton("Cancel", this);
connect(cancelButton, SIGNAL( released() ), this, SLOT( slotCancel() ) );
QLabel *l = new QLabel("Text",this);
grid->addWidget(l);
grid->addWidget(m_name);
l = new QLabel("Annotation",this);
grid->addWidget(l);
grid->addWidget(m_anno,1);
QHBoxLayout* hgrid = new QHBoxLayout(grid);
hgrid->addWidget(cancelButton);