]> Git trees. - libqmvoc.git/commitdiff
Move a private widget into a private header, no need to expose it as public API.
authorPino Toscano <pino@kde.org>
Sun, 18 Feb 2007 11:50:09 +0000 (11:50 +0000)
committerPino Toscano <pino@kde.org>
Sun, 18 Feb 2007 11:50:09 +0000 (11:50 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634800

extdate/extdatetimeedit.cpp
extdate/extdatetimeedit.h
extdate/extdatetimeedit_p.h [new file with mode: 0644]

index c21b03d3dd96b1ceaa73cccf63b0f8d2521f09b0..337bd64b014570b9d7f070fadb3c36b85015ec37 100644 (file)
@@ -27,6 +27,7 @@
 #include "extdatetime.h"
 
 #include "extdatetimeedit.h"
+#include "extdatetimeedit_p.h"
 
 class ExtDateEdit::Private
 {
@@ -287,8 +288,8 @@ void ExtDateTimeEdit::slotEmitDateTimeChanged() {
        emit dateTimeChanged( dateTime() );
 }
 
-edLineEdit::edLineEdit( QWidget *parent ) : QLineEdit( parent ) {
-       edParent = (ExtDateEdit*)parent;
+edLineEdit::edLineEdit( ExtDateEdit *parent ) : QLineEdit( parent ) {
+       edParent = parent;
 }
 
 void edLineEdit::mouseReleaseEvent( QMouseEvent * ) {
index e4879cc9f0f08cdb2db822b90af44540c30de936..2cfba7b61e0716da68460aa76d45e043ff52a783 100644 (file)
@@ -328,45 +328,4 @@ dt.time() ); }
                ExtDateEdit *m_DateEdit;
 };
 
-/**
-       *@class edLineEdit
-       *@short A QLineEdit adapted for use by ExtDateEdit.
-       *
-       *This class simply provides custom keyboard and mouse event handlers
-       *needed for the ExtDateEdit widget.
-       *@author Jason Harris
-       *@version 1.0
-       */
-class edLineEdit : public QLineEdit {
-       public:
-/**
-       *@short Default constructor.
-       *@p parent pointer to the parent widget; defaults to 0
-       */
-               edLineEdit( QWidget *parent=0 );
-/**
-       *@short Default destructor. Empty.
-       */
-               ~edLineEdit() {}
-
-       protected:
-/**
-       *@short Set the active date field based on where in the date 
-       *string the mouse was clicked.
-       */
-               void mouseReleaseEvent( QMouseEvent * );
-/**
-       *@short Handle arrow-key press events.
-       *
-       *Up/Down arrows call ExtDateEdit::stepBy(); 
-       *Left/Right arrows invoke a key press of Shift+Tab/Tab, 
-       *which automatically calls
-       *ExtDateEdit::focusNextPrevChild()
-       */
-               void keyPressEvent( QKeyEvent *e );
-
-       private:
-               ExtDateEdit *edParent;
-};
-
 #endif  //EXTDATETIMEEDIT_H
diff --git a/extdate/extdatetimeedit_p.h b/extdate/extdatetimeedit_p.h
new file mode 100644 (file)
index 0000000..17a80f8
--- /dev/null
@@ -0,0 +1,58 @@
+/***************************************************************************
+    copyright            : (C) 2005 by Jason Harris
+    email                : kstars@30doradus.org
+ ***************************************************************************/
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef EXTDATETIMEEDIT_P_H
+#define EXTDATETIMEEDIT_P_H
+
+/**
+       *@class edLineEdit
+       *@short A QLineEdit adapted for use by ExtDateEdit.
+       *
+       *This class simply provides custom keyboard and mouse event handlers
+       *needed for the ExtDateEdit widget.
+       *@author Jason Harris
+       *@version 1.0
+       */
+class edLineEdit : public QLineEdit {
+       public:
+/**
+       *@short Default constructor.
+       *@p parent pointer to the parent widget; defaults to 0
+       */
+               explicit edLineEdit( ExtDateEdit *parent=0 );
+/**
+       *@short Default destructor. Empty.
+       */
+               ~edLineEdit() {}
+
+       protected:
+/**
+       *@short Set the active date field based on where in the date 
+       *string the mouse was clicked.
+       */
+               void mouseReleaseEvent( QMouseEvent * );
+/**
+       *@short Handle arrow-key press events.
+       *
+       *Up/Down arrows call ExtDateEdit::stepBy(); 
+       *Left/Right arrows invoke a key press of Shift+Tab/Tab, 
+       *which automatically calls
+       *ExtDateEdit::focusNextPrevChild()
+       */
+               void keyPressEvent( QKeyEvent *e );
+
+       private:
+               ExtDateEdit *edParent;
+};
+
+#endif  //EXTDATETIMEEDIT_H