Adding upstream version 0.6.0-55-gd572f39.

upstream/0.6.0-55-gd572f39
Alf Gaida 9 years ago
parent d85e68a891
commit cd17ca0509

@ -46,7 +46,7 @@ SearchBar::SearchBar(QWidget *parent) : QWidget(parent)
m_useRegularExpressionMenuEntry->setCheckable(true); m_useRegularExpressionMenuEntry->setCheckable(true);
connect(m_useRegularExpressionMenuEntry, SIGNAL(toggled(bool)), this, SIGNAL(searchCriteriaChanged())); connect(m_useRegularExpressionMenuEntry, SIGNAL(toggled(bool)), this, SIGNAL(searchCriteriaChanged()));
m_highlightMatchesMenuEntry = optionsMenu->addAction(tr("Higlight all matches")); m_highlightMatchesMenuEntry = optionsMenu->addAction(tr("Highlight all matches"));
m_highlightMatchesMenuEntry->setCheckable(true); m_highlightMatchesMenuEntry->setCheckable(true);
m_highlightMatchesMenuEntry->setChecked(true); m_highlightMatchesMenuEntry->setChecked(true);
connect(m_highlightMatchesMenuEntry, SIGNAL(toggled(bool)), this, SIGNAL(highlightMatchesChanged(bool))); connect(m_highlightMatchesMenuEntry, SIGNAL(toggled(bool)), this, SIGNAL(highlightMatchesChanged(bool)));

@ -236,25 +236,9 @@ void Session::removeView(TerminalDisplay * widget)
void Session::run() void Session::run()
{ {
//check that everything is in place to run the session
if (_program.isEmpty()) {
qDebug() << "Session::run() - program to run not set.";
}
else {
qDebug() << "Session::run() - program:" << _program;
}
if (_arguments.isEmpty()) {
qDebug() << "Session::run() - no command line arguments specified.";
}
else {
qDebug() << "Session::run() - arguments:" << _arguments;
}
// Upon a KPty error, there is no description on what that error was... // Upon a KPty error, there is no description on what that error was...
// Check to see if the given program is executable. // Check to see if the given program is executable.
/* ok iam not exactly sure where _program comes from - however it was set to /bin/bash on my system /* ok iam not exactly sure where _program comes from - however it was set to /bin/bash on my system
* Thats bad for BSD as its /usr/local/bin/bash there - its also bad for arch as its /usr/bin/bash there too! * Thats bad for BSD as its /usr/local/bin/bash there - its also bad for arch as its /usr/bin/bash there too!
* So i added a check to see if /bin/bash exists - if no then we use $SHELL - if that does not exist either, we fall back to /bin/sh * So i added a check to see if /bin/bash exists - if no then we use $SHELL - if that does not exist either, we fall back to /bin/sh
@ -320,7 +304,6 @@ void Session::run()
} }
_shellProcess->setWriteable(false); // We are reachable via kwrited. _shellProcess->setWriteable(false); // We are reachable via kwrited.
qDebug() << "started!";
emit started(); emit started();
} }
@ -335,8 +318,6 @@ void Session::runEmptyPTY()
_shellProcess, SLOT(sendData(const char *,int)) ); _shellProcess, SLOT(sendData(const char *,int)) );
_shellProcess->setEmptyPTYProperties(); _shellProcess->setEmptyPTYProperties();
qDebug() << "started!";
emit started(); emit started();
} }

@ -95,8 +95,8 @@ public slots:
virtual void sendText(const QString& text); virtual void sendText(const QString& text);
virtual void sendKeyEvent(QKeyEvent*); virtual void sendKeyEvent(QKeyEvent*);
virtual void sendMouseEvent(int buttons, int column, int line, int eventType); virtual void sendMouseEvent(int buttons, int column, int line, int eventType);
virtual void focusLost() Q_DECL_OVERRIDE; virtual void focusLost();
virtual void focusGained() Q_DECL_OVERRIDE; virtual void focusGained();
protected: protected:
// reimplemented from Emulation // reimplemented from Emulation

@ -117,20 +117,20 @@ extern "C" {
# define _NEW_TTY_CTRL # define _NEW_TTY_CTRL
#endif #endif
#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__) #if defined (__FreeBSD__) || defined(__FreeBSD_kernel__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__)
# define _tcgetattr(fd, ttmode) ioctl(fd, TIOCGETA, (char *)ttmode) # define _tcgetattr(fd, ttmode) ioctl(fd, TIOCGETA, (char *)ttmode)
#else #else
# if defined(_HPUX_SOURCE) || defined(__Lynx__) || defined (__CYGWIN__) # if defined(_HPUX_SOURCE) || defined(__Lynx__) || defined (__CYGWIN__) || defined(__GNU__)
# define _tcgetattr(fd, ttmode) tcgetattr(fd, ttmode) # define _tcgetattr(fd, ttmode) tcgetattr(fd, ttmode)
# else # else
# define _tcgetattr(fd, ttmode) ioctl(fd, TCGETS, (char *)ttmode) # define _tcgetattr(fd, ttmode) ioctl(fd, TCGETS, (char *)ttmode)
# endif # endif
#endif #endif
#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__) #if defined (__FreeBSD__) || defined(__FreeBSD_kernel__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__)
# define _tcsetattr(fd, ttmode) ioctl(fd, TIOCSETA, (char *)ttmode) # define _tcsetattr(fd, ttmode) ioctl(fd, TIOCSETA, (char *)ttmode)
#else #else
# if defined(_HPUX_SOURCE) || defined(__CYGWIN__) # if defined(_HPUX_SOURCE) || defined(__CYGWIN__) || defined(__GNU__)
# define _tcsetattr(fd, ttmode) tcsetattr(fd, TCSANOW, ttmode) # define _tcsetattr(fd, ttmode) tcsetattr(fd, TCSANOW, ttmode)
# else # else
# define _tcsetattr(fd, ttmode) ioctl(fd, TCSETS, (char *)ttmode) # define _tcsetattr(fd, ttmode) ioctl(fd, TCSETS, (char *)ttmode)

Loading…
Cancel
Save