summaryrefslogtreecommitdiff
authorzecke <zecke>2003-01-22 14:59:26 (UTC)
committer zecke <zecke>2003-01-22 14:59:26 (UTC)
commita7b33b069107b64112b1760dc3eca02469a052d9 (patch) (side-by-side diff)
tree22185acb673480104d5ddd10f2e6e209aeaebc4e
parent36fab41fa6b38b9f3aa5ecd74b750eaf739beb16 (diff)
downloadopie-a7b33b069107b64112b1760dc3eca02469a052d9.zip
opie-a7b33b069107b64112b1760dc3eca02469a052d9.tar.gz
opie-a7b33b069107b64112b1760dc3eca02469a052d9.tar.bz2
Make it compile with Opie/X11
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/TEWidget.cpp4
-rw-r--r--noncore/apps/opie-console/TEWidget.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/TEWidget.cpp b/noncore/apps/opie-console/TEWidget.cpp
index 3d010cb..444924b 100644
--- a/noncore/apps/opie-console/TEWidget.cpp
+++ b/noncore/apps/opie-console/TEWidget.cpp
@@ -1239,25 +1239,25 @@ QSize TEWidget::calcSize(int cols, int lins) const
}
QSize TEWidget::sizeHint() const
{
return size();
}
void TEWidget::styleChange(QStyle &)
{
propagateSize();
}
-#ifndef QT_NO_DRAGANDDROP
+#ifdef QT_NO_DRAGANDDROP_FOO
/* --------------------------------------------------------------------- */
/* */
/* Drag & Drop */
/* */
/* --------------------------------------------------------------------- */
void TEWidget::dragEnterEvent(QDragEnterEvent* e)
{
e->accept(QTextDrag::canDecode(e) ||
QUriDrag::canDecode(e));
@@ -1311,25 +1311,25 @@ void TEWidget::dropEvent(QDropEvent* event)
// kdDebug() << "Drop:" << dropText.local8Bit() << "\n";
if (currentSession) {
currentSession->getEmulation()->sendString(dropText.local8Bit());
}
// Paste it
}
}
#endif
void TEWidget::drop_menu_activated(int)
{
-#ifndef QT_NO_DRAGANDDROP
+#ifdef QT_NO_DRAGANDDROP_FOO
switch (item)
{
case 0: // paste
currentSession->getEmulation()->sendString(dropText.local8Bit());
// KWM::activate((Window)this->winId());
break;
case 1: // cd ...
currentSession->getEmulation()->sendString("cd ");
struct stat statbuf;
if ( ::stat( QFile::encodeName( dropText ), &statbuf ) == 0 )
{
if ( !S_ISDIR(statbuf.st_mode) )
diff --git a/noncore/apps/opie-console/TEWidget.h b/noncore/apps/opie-console/TEWidget.h
index 6ff731b..900a659 100644
--- a/noncore/apps/opie-console/TEWidget.h
+++ b/noncore/apps/opie-console/TEWidget.h
@@ -119,25 +119,25 @@ protected:
void fontChange(const QFont &font);
void frameChanged();
void mouseDoubleClickEvent(QMouseEvent* ev);
void mousePressEvent( QMouseEvent* );
void mouseReleaseEvent( QMouseEvent* );
void mouseMoveEvent( QMouseEvent* );
void focusInEvent( QFocusEvent * );
void focusOutEvent( QFocusEvent * );
bool focusNextPrevChild( bool next );
-#ifndef QT_NO_DRAGANDDROP
+#ifdef QT_NO_DRAGANDDROP_FOO_BAR_
// Dnd
void dragEnterEvent(QDragEnterEvent* event);
void dropEvent(QDropEvent* event);
#endif
virtual int charClass(char) const;
void clearImage();
public:
const QPixmap *backgroundPixmap();