ORE Studio 0.0.4
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
MdiUtils Class Referencefinal

Utility functions for MDI window operations. More...

#include <MdiUtils.hpp>

Collaboration diagram for MdiUtils:
Collaboration graph

Static Public Member Functions

static bool markParentWindowAsStale (QWidget *widget)
 Mark the parent MDI subwindow as having stale data.
 
static bool clearParentWindowStaleMarker (QWidget *widget)
 Clear the stale marker from the parent MDI subwindow.
 

Detailed Description

Utility functions for MDI window operations.

Member Function Documentation

◆ markParentWindowAsStale()

bool markParentWindowAsStale ( QWidget *  widget)
static

Mark the parent MDI subwindow as having stale data.

Traverses up the widget hierarchy to find the parent QMdiSubWindow and appends "(Data Changed)" to its title if not already present.

Parameters
widgetThe widget whose parent MDI window should be marked.
Returns
true if the title was updated, false if no MDI parent found or title already marked.

◆ clearParentWindowStaleMarker()

bool clearParentWindowStaleMarker ( QWidget *  widget)
static

Clear the stale marker from the parent MDI subwindow.

Removes "(Data Changed)" from the window title if present.

Parameters
widgetThe widget whose parent MDI window should be cleared.
Returns
true if the title was updated, false if no MDI parent found or title was not marked.