summaryrefslogtreecommitdiffstats
path: root/knotes
diff options
context:
space:
mode:
Diffstat (limited to 'knotes')
-rw-r--r--knotes/knotebutton.cpp2
-rw-r--r--knotes/knotesapp.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/knotes/knotebutton.cpp b/knotes/knotebutton.cpp
index 846dc503e..b1f28f2f2 100644
--- a/knotes/knotebutton.cpp
+++ b/knotes/knotebutton.cpp
@@ -33,7 +33,7 @@
KNoteButton::KNoteButton( const TQString& icon, TQWidget *tqparent, const char *name )
: TQPushButton( tqparent, name )
{
- setFocusPolicy( Qt::NoFocus );
+ setFocusPolicy( TQ_NoFocus );
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
m_flat = true;
diff --git a/knotes/knotesapp.cpp b/knotes/knotesapp.cpp
index 3423e7cd8..5f2d74fb2 100644
--- a/knotes/knotesapp.cpp
+++ b/knotes/knotesapp.cpp
@@ -488,7 +488,7 @@ void KNotesApp::mousePressEvent( TQMouseEvent* e )
void KNotesApp::slotShowNote()
{
// tell the WM to give this note focus
- showNote( TQString::fromUtf8( TQT_TQOBJECT(sender())->name() ) );
+ showNote( TQString::fromUtf8( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() ) );
}
void KNotesApp::slotWalkThroughNotes()