summaryrefslogtreecommitdiffstats
path: root/src/datepicker.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-13 19:30:17 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-13 19:30:17 +0200
commit357ddeb8afd82d69ef871c146f4fc8f2c67fb17e (patch)
treedc3ef0e6fedd64f5fb177c114f72e1515a07cd1b /src/datepicker.cpp
parentc6cbd71bc169ac0e927e52325dbbbcb506abbc73 (diff)
downloadklamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.tar.gz
klamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.zip
Conversion Qt3->TQt
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/datepicker.cpp')
-rw-r--r--src/datepicker.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/datepicker.cpp b/src/datepicker.cpp
index 360c713..7a7b589 100644
--- a/src/datepicker.cpp
+++ b/src/datepicker.cpp
@@ -29,51 +29,51 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <klocale.h>
#include <kwin.h>
-DatePicker::DatePicker(QWidget *parent, const QDate& date)
- : QVBox( parent, 0,(WType_TopLevel | WDestructiveClose | WStyle_StaysOnTop))
+DatePicker::DatePicker(TQWidget *parent, const TQDate& date)
+ : TQVBox( parent, 0,(WType_TopLevel | WDestructiveClose | WStyle_StaysOnTop))
{
- setFrameStyle( QFrame::PopupPanel | QFrame::Raised );
+ setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised );
KWin::setType( winId(), NET::Utility );
KWin::setOnAllDesktops( handle(), true );
picker = new KDatePicker(this, date);
picker->setCloseButton(true);
- connect( picker, SIGNAL(dateSelected(QDate)),this,
- SLOT(slotEmitSelectedDate(QDate)) );
+ connect( picker, SIGNAL(dateSelected(TQDate)),this,
+ SLOT(slotEmitSelectedDate(TQDate)) );
/* name and icon for kicker's taskbar */
setCaption(i18n("Calendar"));
setIcon(SmallIcon("date"));
}
-void DatePicker::closeEvent(QCloseEvent* e)
+void DatePicker::closeEvent(TQCloseEvent* e)
{
/* prefs->setCalendarSize(size());*/
- QVBox::closeEvent(e);
+ TQVBox::closeEvent(e);
}
-void DatePicker::keyPressEvent(QKeyEvent *e)
+void DatePicker::keyPressEvent(TQKeyEvent *e)
{
- QVBox::keyPressEvent(e);
+ TQVBox::keyPressEvent(e);
- if (e->key() == Qt::Key_Escape)
+ if (e->key() == TQt::Key_Escape)
{
close();
}
}
-bool DatePicker::setDate(const QDate& date)
+bool DatePicker::setDate(const TQDate& date)
{
return picker->setDate(date);
}
-void DatePicker::slotEmitSelectedDate(QDate newdate)
+void DatePicker::slotEmitSelectedDate(TQDate newdate)
{
emit signalSelectedDate(newdate);
//kdDebug() << "here date" << endl;
close();
}
-QDate DatePicker::date()
+TQDate DatePicker::date()
{
return picker->date();
}