summaryrefslogtreecommitdiffabout
path: root/korganizer/koeventviewer.h
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (side-by-side diff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/koeventviewer.h
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'korganizer/koeventviewer.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeventviewer.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/korganizer/koeventviewer.h b/korganizer/koeventviewer.h
index 64eb4ff..3df667f 100644
--- a/korganizer/koeventviewer.h
+++ b/korganizer/koeventviewer.h
@@ -22,7 +22,10 @@
// Viewer widget for events.
//
-#include <qtextbrowser.h>
+#include <q3textbrowser.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <QKeyEvent>
#include <libkcal/event.h>
#include <libkcal/journal.h>
@@ -37,7 +40,7 @@ using namespace KCal;
#include <qlayout.h>
#include <qdialog.h>
#include <qlabel.h>
-#include <qbuttongroup.h>
+#include <q3buttongroup.h>
#include <kglobal.h>
class KOPrintPrefs : public QDialog
@@ -47,13 +50,13 @@ class KOPrintPrefs : public QDialog
QDialog( parent, name, true )
{
setCaption( i18n("KO/Pi Printout") );
- QVBoxLayout* lay = new QVBoxLayout( this );
+ Q3VBoxLayout* lay = new Q3VBoxLayout( this );
lay->setSpacing( 9 );
lay->setMargin( 9 );
QLabel * lab = new QLabel( i18n("This prints the view as you see it.\n(With the complete content, of course.)\nYou may change the print layout by resizing the view.\nPrint unscaled may print several pages\ndepending on the amount of data.\nPrint scaled down will print all on one page.\nPrint scaled up/down will print all on one page,\nbut will scale up the text to page boundaries,\nif the text is smaller than the page.\nYou can select page geometry setup in the next dialog.\n"), this );
lay->addWidget( lab );
- lab->setAlignment( AlignCenter );
- QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("Printout Mode"), this );
+ lab->setAlignment( Qt::AlignCenter );
+ Q3ButtonGroup* format = new Q3ButtonGroup( 1, Qt::Horizontal, i18n("Printout Mode"), this );
lay->addWidget( format );
format->setExclusive ( true ) ;
pmNo = new QRadioButton(i18n("Print unscaled"), format );
@@ -83,7 +86,7 @@ private:
#endif
-class KOEventViewer : public QTextBrowser {
+class KOEventViewer : public Q3TextBrowser {
Q_OBJECT
public:
KOEventViewer(QWidget *parent=0,const char *name=0);
@@ -117,7 +120,7 @@ class KOEventViewer : public QTextBrowser {
void keyPressEvent ( QKeyEvent * e );
private:
- QTextBrowser *mEventTextView;
+ Q3TextBrowser *mEventTextView;
bool mSyncMode;
QString deTag(QString text);