diff options
Diffstat (limited to 'examples/uinotification/uinotification.cpp')
| -rw-r--r-- | examples/uinotification/uinotification.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/examples/uinotification/uinotification.cpp b/examples/uinotification/uinotification.cpp index d9eada8e..5072d98a 100644 --- a/examples/uinotification/uinotification.cpp +++ b/examples/uinotification/uinotification.cpp @@ -31,21 +31,24 @@ void NotificationListener::OnContextClose(UIContext* context) bool NotificationListener::OnBeforeOpenDatabase(UIContext* context, FileMetadataRef metadata) { LogInfo("OnBeforeOpenDatabase"); - return QMessageBox::question(context->mainWindow(), "OnBeforeOpenDatabase", "OnBeforeOpenDatabase") == QMessageBox::StandardButton::Yes; + return QMessageBox::question(context->mainWindow(), "OnBeforeOpenDatabase", "OnBeforeOpenDatabase") + == QMessageBox::StandardButton::Yes; } bool NotificationListener::OnAfterOpenDatabase(UIContext* context, FileMetadataRef metadata, BinaryViewRef data) { LogInfo("OnAfterOpenDatabase"); - return QMessageBox::question(context->mainWindow(), "OnAfterOpenDatabase", "OnAfterOpenDatabase") == QMessageBox::StandardButton::Yes; + return QMessageBox::question(context->mainWindow(), "OnAfterOpenDatabase", "OnAfterOpenDatabase") + == QMessageBox::StandardButton::Yes; } bool NotificationListener::OnBeforeOpenFile(UIContext* context, FileContext* file) { LogInfo("OnBeforeOpenFile"); - return QMessageBox::question(context->mainWindow(), "OnBeforeOpenFile", "OnBeforeOpenFile") == QMessageBox::StandardButton::Yes; + return QMessageBox::question(context->mainWindow(), "OnBeforeOpenFile", "OnBeforeOpenFile") + == QMessageBox::StandardButton::Yes; } @@ -58,7 +61,8 @@ void NotificationListener::OnAfterOpenFile(UIContext* context, FileContext* file bool NotificationListener::OnBeforeSaveFile(UIContext* context, FileContext* file, ViewFrame* frame) { LogInfo("OnBeforeSaveFile"); - return QMessageBox::question(context->mainWindow(), "OnBeforeSaveFile", "OnBeforeSaveFile") == QMessageBox::StandardButton::Yes; + return QMessageBox::question(context->mainWindow(), "OnBeforeSaveFile", "OnBeforeSaveFile") + == QMessageBox::StandardButton::Yes; } @@ -71,7 +75,8 @@ void NotificationListener::OnAfterSaveFile(UIContext* context, FileContext* file bool NotificationListener::OnBeforeCloseFile(UIContext* context, FileContext* file, ViewFrame* frame) { LogInfo("OnBeforeCloseFile"); - return QMessageBox::question(context->mainWindow(), "OnBeforeCloseFile", "OnBeforeCloseFile") == QMessageBox::StandardButton::Yes; + return QMessageBox::question(context->mainWindow(), "OnBeforeCloseFile", "OnBeforeCloseFile") + == QMessageBox::StandardButton::Yes; } @@ -87,7 +92,8 @@ void NotificationListener::OnViewChange(UIContext* context, ViewFrame* frame, co } -void NotificationListener::OnAddressChange(UIContext* context, ViewFrame* frame, View* view, const ViewLocation& location) +void NotificationListener::OnAddressChange( + UIContext* context, ViewFrame* frame, View* view, const ViewLocation& location) { LogInfo("OnAddressChange: 0x%" PRIx64, location.getOffset()); } |
