[PATCH 3/3] Add a slot to mainwindow but amend to use Q_SLOTS

Thiago Macieira thiago at macieira.org
Tue Apr 9 08:25:53 PDT 2013


On terça-feira, 9 de abril de 2013 06.53.20, Dirk Hohndel wrote:
> > +void MainWindow::on_actionNew_triggered()
> > +{
> > +    qDebug() << "actionNew";
> > +}
> > +
> 
> By the way: this is a part of C++ syntax that I really dislike... the
> whole streams thing is just ugly.

qDebug("actionNew") also works.

And qDebug() supports printf-style formatting.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130409/9dfe5177/attachment.sig>


More information about the subsurface mailing list