From fb0027ea0649aa5bf4c3880dc84df459425c0642 Mon Sep 17 00:00:00 2001 From: ibotty Date: Sun, 06 Oct 2002 12:40:48 +0000 Subject: made setImage virual // setImage should be the only virtual public method. // feel free to flame... ;) added first protected var, more will follow --- (limited to 'noncore/apps/opie-console/widget_layer.h') diff --git a/noncore/apps/opie-console/widget_layer.h b/noncore/apps/opie-console/widget_layer.h index 5474c64..cf2a1e5 100644 --- a/noncore/apps/opie-console/widget_layer.h +++ b/noncore/apps/opie-console/widget_layer.h @@ -1,4 +1,4 @@ -/* -------------------------------------------------------------------------- */ + /* */ /* [widget_layer.h] Widget Layer */ /* */ @@ -11,7 +11,6 @@ // (or say in chat) - class WidgetLayer : public QObject { QObject @@ -29,7 +28,7 @@ public: /** * sets the image */ - void setImage( const Character* const newimg, int lines, int colums ); + virtual void setImage( const Character* const newimg, int lines, int colums ); /** * annoy the user @@ -39,12 +38,12 @@ public: /** * return the lines count */ - int lines() { return _lines; } + int lines() { return m_lines; } /** * return the columns count */ - int columns() { return _columns } + int columns() { return m_columns } /** * copy selection into clipboard, etc @@ -116,6 +115,16 @@ slots: */ onClearSelection(); -}; +// protected vars +protected: + + /** + * current Session + */ + Session m_session; + /** + * other misc vars + */ +}; -- cgit v0.9.0.2