mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
format a datetime in the kde's way
svn path=/trunk/playground/graphics/okular/; revision=585234
This commit is contained in:
parent
c4ace82830
commit
7ee4cbcae9
1 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2006 by Chu Xiaodong <xiaodongchu@gmail.com> *
|
||||
* *
|
||||
|
@ -7,9 +6,14 @@
|
|||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
***************************************************************************/
|
||||
#include <QPainter>
|
||||
#include "annotwindow.h"
|
||||
|
||||
// qt/kde includes
|
||||
#include <QPainter>
|
||||
#include <kglobal.h>
|
||||
#include <klocale.h>
|
||||
|
||||
// local includes
|
||||
#include "annotwindow.h"
|
||||
|
||||
MouseBox::MouseBox( QWidget * parent)
|
||||
: QWidget(parent),pointpressed(0,0)//pointpressed(QPoint(0,0))// m_parent(parent)
|
||||
|
@ -41,7 +45,7 @@ AnnotWindow::AnnotWindow( QWidget * parent, Annotation * annot)
|
|||
textEdit=new QTextEdit(m_annot->window.text, this);
|
||||
connect(textEdit,SIGNAL(textChanged()),
|
||||
this,SLOT(slotsaveWindowText()));
|
||||
modTime=m_annot->modifyDate.toString(Qt::ISODate);
|
||||
modTime = KGlobal::locale()->formatDateTime( m_annot->modifyDate, true, true );
|
||||
|
||||
setPalette( QPalette(m_annot->style.color));
|
||||
QPalette pl=textEdit->palette();
|
||||
|
|
Loading…
Reference in a new issue