mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +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)
|
||||
{
|
||||
QMouseEvent* mev = static_cast<QMouseEvent*>(ev);
|
||||
if (mev->button() == Qt::MidButton) {
|
||||
if (mev->button() == Qt::MiddleButton) {
|
||||
// enable or disable the clicked-on item
|
||||
BreakpointItem* bp =
|
||||
static_cast<BreakpointItem*>(m_ui.bpList->itemAt(mev->pos()));
|
||||
|
|
|
@ -31,7 +31,7 @@ protected:
|
|||
std::vector<QIcon> m_icons;
|
||||
|
||||
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,
|
||||
QString condition = QString());
|
||||
void initListAndIcons();
|
||||
|
|
|
@ -1180,7 +1180,7 @@ void DebuggerMainWnd::slotFileExe()
|
|||
{
|
||||
// open a new executable
|
||||
QString executable = myGetFileName(i18n("Select the executable to debug"),
|
||||
m_lastDirectory, 0, this);
|
||||
m_lastDirectory, QString(), this);
|
||||
if (executable.isEmpty())
|
||||
return;
|
||||
|
||||
|
@ -1193,7 +1193,7 @@ void DebuggerMainWnd::slotFileCore()
|
|||
if (m_debugger->canStart())
|
||||
{
|
||||
QString corefile = myGetFileName(i18n("Select core dump"),
|
||||
m_lastDirectory, 0, this);
|
||||
m_lastDirectory, QString(), this);
|
||||
if (!corefile.isEmpty()) {
|
||||
m_debugger->useCoreFile(corefile, false);
|
||||
}
|
||||
|
|
|
@ -199,7 +199,7 @@ void PgmArgs::on_insertFile_clicked()
|
|||
|
||||
// use the selection as default
|
||||
QString f = programArgs->selectedText();
|
||||
f = KFileDialog::getSaveFileName(f, QString::null,
|
||||
f = KFileDialog::getSaveFileName(f, QString(),
|
||||
this, caption);
|
||||
// don't clear the selection if no file was selected
|
||||
if (!f.isEmpty()) {
|
||||
|
|
|
@ -336,7 +336,7 @@ void SourceWindow::find(const QString& text, bool caseSensitive, FindDirection d
|
|||
void SourceWindow::infoMousePress(QMouseEvent* ev)
|
||||
{
|
||||
// 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;
|
||||
}
|
||||
|
@ -373,7 +373,7 @@ void SourceWindow::infoMousePress(QMouseEvent* ev)
|
|||
emit clickedLeft(m_fileName, line, address,
|
||||
(ev->modifiers() & Qt::ShiftModifier) != 0);
|
||||
break;
|
||||
case Qt::MidButton:
|
||||
case Qt::MiddleButton:
|
||||
TRACE(QString().sprintf("mid-clicked row %d", line));
|
||||
emit clickedMid(m_fileName, line, address);
|
||||
break;
|
||||
|
|
|
@ -106,7 +106,7 @@ static XsldbgCmdInfo cmds[] = {
|
|||
XsldbgDriver::XsldbgDriver():
|
||||
DebuggerDriver()
|
||||
{
|
||||
m_haveDataFile = FALSE;
|
||||
m_haveDataFile = false;
|
||||
|
||||
#ifndef NDEBUG
|
||||
// check command info array
|
||||
|
|
Loading…
Add table
Reference in a new issue