Diffstat (limited to 'noncore/apps/opie-console/widget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/widget.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/widget.cpp b/noncore/apps/opie-console/widget.cpp index b8f2906..d948179 100644 --- a/noncore/apps/opie-console/widget.cpp +++ b/noncore/apps/opie-console/widget.cpp | |||
@@ -22,4 +22,5 @@ | |||
22 | "currentSession->layer()->send()" | 22 | "currentSession->layer()->send()" |
23 | # this is not right! EmulationLayer should send it... | 23 | # this is not right! EmulationLayer should send it... |
24 | i changed all those to use emulationLayer()->send() instead | ||
24 | i had to create a QByteArray before... | 25 | i had to create a QByteArray before... |
25 | 26 | ||
@@ -1231,5 +1232,6 @@ void Widget::dropEvent(QDropEvent* event) | |||
1231 | QByteArray tmp; | 1232 | QByteArray tmp; |
1232 | // ibot: this should be pretty wrong... | 1233 | // ibot: this should be pretty wrong... |
1233 | currentSession->layer()->send( tmp.setRawData( dropText.local8Bit())); | 1234 | // now it sends to the right layer |
1235 | currentSession-> emulationLayer()->send( tmp.setRawData( dropText.local8Bit())); | ||
1234 | } | 1236 | } |
1235 | // kdDebug() << "Drop:" << dropText.local8Bit() << "\n"; | 1237 | // kdDebug() << "Drop:" << dropText.local8Bit() << "\n"; |
@@ -1242,5 +1244,5 @@ void Widget::dropEvent(QDropEvent* event) | |||
1242 | //currentSession->getEmulation()->sendString(dropText.local8Bit()); | 1244 | //currentSession->getEmulation()->sendString(dropText.local8Bit()); |
1243 | QByteArray tmp; | 1245 | QByteArray tmp; |
1244 | currentSession->layer()->send( tmp.setRawData( dropText.local8Bit())); | 1246 | currentSession->emulationLayer()->send( tmp.setRawData( dropText.local8Bit())); |
1245 | } | 1247 | } |
1246 | // Paste it | 1248 | // Paste it |
@@ -1258,5 +1260,5 @@ void Widget::drop_menu_activated(int item) | |||
1258 | case 0: // paste | 1260 | case 0: // paste |
1259 | //currentSession->getEmulation()->sendString(dropText.local8Bit()); | 1261 | //currentSession->getEmulation()->sendString(dropText.local8Bit()); |
1260 | currentSession->layer()->send( tmp.setRawData( dropText.local8Bit())); | 1262 | currentSession->emulationLayer()->send( tmp.setRawData( dropText.local8Bit())); |
1261 | 1263 | ||
1262 | // KWM::activate((Window)this->winId()); | 1264 | // KWM::activate((Window)this->winId()); |
@@ -1265,5 +1267,5 @@ void Widget::drop_menu_activated(int item) | |||
1265 | //currentSession->getEmulation()->sendString("cd "); | 1267 | //currentSession->getEmulation()->sendString("cd "); |
1266 | tmp.setRawData( "cd " ); | 1268 | tmp.setRawData( "cd " ); |
1267 | currentSession->layer()->send( tmp ); | 1269 | currentSession->emulationLayer()->send( tmp ); |
1268 | struct stat statbuf; | 1270 | struct stat statbuf; |
1269 | if ( ::stat( QFile::encodeName( dropText ), &statbuf ) == 0 ) | 1271 | if ( ::stat( QFile::encodeName( dropText ), &statbuf ) == 0 ) |
@@ -1283,5 +1285,5 @@ void Widget::drop_menu_activated(int item) | |||
1283 | //currentSession->getEmulation()->sendString(dropText.local8Bit()); | 1285 | //currentSession->getEmulation()->sendString(dropText.local8Bit()); |
1284 | //currentSession->getEmulation()->sendString("\n"); | 1286 | //currentSession->getEmulation()->sendString("\n"); |
1285 | currentSession->layer()->send( tmp ); | 1287 | currentSession->emulationLayer()->send( tmp ); |
1286 | // KWM::activate((Window)this->winId()); | 1288 | // KWM::activate((Window)this->winId()); |
1287 | break; | 1289 | break; |