forked from qt-creator/qt-creator
Braces cleanup
Change-Id: I8413252c90a1487d291f15d92837c30ab697b245 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -155,11 +155,10 @@ void ImageViewer::contextMenuEvent(QContextMenuEvent *ev)
|
||||
copyAction->setEnabled(hasImage);
|
||||
imageViewerAction->setEnabled(hasImage);
|
||||
QAction *action = menu.exec(ev->globalPos());
|
||||
if (action == copyAction) {
|
||||
if (action == copyAction)
|
||||
QApplication::clipboard()->setImage(image);
|
||||
} else if (action == imageViewerAction) {
|
||||
else if (action == imageViewerAction)
|
||||
openImageViewer(image);
|
||||
}
|
||||
}
|
||||
|
||||
#include "imageviewer.moc"
|
||||
|
||||
Reference in New Issue
Block a user