From df5a8d26c398ad65f09bd26c492c08f6c0ee22e0 Mon Sep 17 00:00:00 2001 From: harlekin Date: Thu, 17 Oct 2002 17:19:20 +0000 Subject: fullscreen mode ready --- (limited to 'noncore/apps/opie-console/TEWidget.cpp') diff --git a/noncore/apps/opie-console/TEWidget.cpp b/noncore/apps/opie-console/TEWidget.cpp index 75c438c..f3f462f 100644 --- a/noncore/apps/opie-console/TEWidget.cpp +++ b/noncore/apps/opie-console/TEWidget.cpp @@ -60,6 +60,7 @@ #include #include #include +#include #include #include @@ -71,6 +72,8 @@ #include + + // #include "TEWidget.moc" //#include //#include @@ -274,7 +277,9 @@ void TEWidget::setFont(const QFont &) /* */ /* Constructor / Destructor */ /* */ -/* ------------------------------------------------------------------------- */ +/* ----------------------------------------------------------------------- */ + + TEWidget::TEWidget(QWidget *parent, const char *name) : QFrame(parent,name) { @@ -284,10 +289,16 @@ TEWidget::TEWidget(QWidget *parent, const char *name) : QFrame(parent,name) this, SLOT(onClearSelection()) ); #endif - scrollbar = new QScrollBar(this); + + scrollbar = new QScrollBar( this ); scrollbar->setCursor( arrowCursor ); connect(scrollbar, SIGNAL(valueChanged(int)), this, SLOT(scrollChanged(int))); + m_cornerButton = new QPushButton( this ); + m_cornerButton->setPixmap( QPixmap( (const char**)menu_xpm ) ); + m_cornerButton->setMaximumSize( 14, 14 ); + m_cornerButton->hide(); + Config cfg("Konsole"); cfg.setGroup("ScrollBar"); switch( cfg.readNumEntry("Position",2)){ @@ -854,7 +865,7 @@ void TEWidget::mouseDoubleClickEvent(QMouseEvent* ev) void TEWidget::focusInEvent( QFocusEvent * ) { - + // do nothing, to prevent repainting } @@ -1262,3 +1273,6 @@ void TEWidget::drop_menu_activated(int item) #endif } +QPushButton* TEWidget::cornerButton() { + return m_cornerButton; +} -- cgit v0.9.0.2