mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-24 02:42:51 +00:00
kdbg: fix build against Katie
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
21133566c6
commit
5d24046c22
6 changed files with 8 additions and 8 deletions
|
@ -191,7 +191,7 @@ bool BreakpointTable::eventFilter(QObject* ob, QEvent* ev)
|
||||||
if (ev->type() == QEvent::MouseButtonPress)
|
if (ev->type() == QEvent::MouseButtonPress)
|
||||||
{
|
{
|
||||||
QMouseEvent* mev = static_cast<QMouseEvent*>(ev);
|
QMouseEvent* mev = static_cast<QMouseEvent*>(ev);
|
||||||
if (mev->button() == Qt::MidButton) {
|
if (mev->button() == Qt::MiddleButton) {
|
||||||
// enable or disable the clicked-on item
|
// enable or disable the clicked-on item
|
||||||
BreakpointItem* bp =
|
BreakpointItem* bp =
|
||||||
static_cast<BreakpointItem*>(m_ui.bpList->itemAt(mev->pos()));
|
static_cast<BreakpointItem*>(m_ui.bpList->itemAt(mev->pos()));
|
||||||
|
|
|
@ -31,7 +31,7 @@ protected:
|
||||||
std::vector<QIcon> m_icons;
|
std::vector<QIcon> m_icons;
|
||||||
|
|
||||||
void insertBreakpoint(int num, bool temp, bool enabled, QString location,
|
void insertBreakpoint(int num, bool temp, bool enabled, QString location,
|
||||||
QString fileName = 0, int lineNo = -1,
|
QString fileName = QString(), int lineNo = -1,
|
||||||
int hits = 0, uint ignoreCount = 0,
|
int hits = 0, uint ignoreCount = 0,
|
||||||
QString condition = QString());
|
QString condition = QString());
|
||||||
void initListAndIcons();
|
void initListAndIcons();
|
||||||
|
|
|
@ -1180,7 +1180,7 @@ void DebuggerMainWnd::slotFileExe()
|
||||||
{
|
{
|
||||||
// open a new executable
|
// open a new executable
|
||||||
QString executable = myGetFileName(i18n("Select the executable to debug"),
|
QString executable = myGetFileName(i18n("Select the executable to debug"),
|
||||||
m_lastDirectory, 0, this);
|
m_lastDirectory, QString(), this);
|
||||||
if (executable.isEmpty())
|
if (executable.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -1193,7 +1193,7 @@ void DebuggerMainWnd::slotFileCore()
|
||||||
if (m_debugger->canStart())
|
if (m_debugger->canStart())
|
||||||
{
|
{
|
||||||
QString corefile = myGetFileName(i18n("Select core dump"),
|
QString corefile = myGetFileName(i18n("Select core dump"),
|
||||||
m_lastDirectory, 0, this);
|
m_lastDirectory, QString(), this);
|
||||||
if (!corefile.isEmpty()) {
|
if (!corefile.isEmpty()) {
|
||||||
m_debugger->useCoreFile(corefile, false);
|
m_debugger->useCoreFile(corefile, false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -199,7 +199,7 @@ void PgmArgs::on_insertFile_clicked()
|
||||||
|
|
||||||
// use the selection as default
|
// use the selection as default
|
||||||
QString f = programArgs->selectedText();
|
QString f = programArgs->selectedText();
|
||||||
f = KFileDialog::getSaveFileName(f, QString::null,
|
f = KFileDialog::getSaveFileName(f, QString(),
|
||||||
this, caption);
|
this, caption);
|
||||||
// don't clear the selection if no file was selected
|
// don't clear the selection if no file was selected
|
||||||
if (!f.isEmpty()) {
|
if (!f.isEmpty()) {
|
||||||
|
|
|
@ -336,7 +336,7 @@ void SourceWindow::find(const QString& text, bool caseSensitive, FindDirection d
|
||||||
void SourceWindow::infoMousePress(QMouseEvent* ev)
|
void SourceWindow::infoMousePress(QMouseEvent* ev)
|
||||||
{
|
{
|
||||||
// we handle left and middle button
|
// we handle left and middle button
|
||||||
if (ev->button() != Qt::LeftButton && ev->button() != Qt::MidButton)
|
if (ev->button() != Qt::LeftButton && ev->button() != Qt::MiddleButton)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -373,7 +373,7 @@ void SourceWindow::infoMousePress(QMouseEvent* ev)
|
||||||
emit clickedLeft(m_fileName, line, address,
|
emit clickedLeft(m_fileName, line, address,
|
||||||
(ev->modifiers() & Qt::ShiftModifier) != 0);
|
(ev->modifiers() & Qt::ShiftModifier) != 0);
|
||||||
break;
|
break;
|
||||||
case Qt::MidButton:
|
case Qt::MiddleButton:
|
||||||
TRACE(QString().sprintf("mid-clicked row %d", line));
|
TRACE(QString().sprintf("mid-clicked row %d", line));
|
||||||
emit clickedMid(m_fileName, line, address);
|
emit clickedMid(m_fileName, line, address);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -106,7 +106,7 @@ static XsldbgCmdInfo cmds[] = {
|
||||||
XsldbgDriver::XsldbgDriver():
|
XsldbgDriver::XsldbgDriver():
|
||||||
DebuggerDriver()
|
DebuggerDriver()
|
||||||
{
|
{
|
||||||
m_haveDataFile = FALSE;
|
m_haveDataFile = false;
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
// check command info array
|
// check command info array
|
||||||
|
|
Loading…
Add table
Reference in a new issue