summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/TableDialog.cpp
blob: b67d534af8a35c06629ebe6977628f2b53afea20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "TableDialog.h"

CTableDialog::CTableDialog(const QFont& f, const QString& tabtext, bool fs, QWidget* parent, const char* name) : QDialog(parent, name, true)
{
  setCaption("Table View");
  QVBoxLayout *tmp = new QVBoxLayout(this);
  QTextView* qtv = new QTextView(this);
  qtv->setFont(f);
  tmp->addWidget(qtv);
  qtv->setText(tabtext);
  if (fs) showMaximized();
  else if (parent != NULL)
    {
      resize(parent->size());
      move(parent->pos());
    }
}