tuned-switcher 1.1.0
Performance profile manager
Loading...
Searching...
No Matches
GuiHelpers Namespace Reference

Functions

QRect GetDefaultFormPosition (const QWidget *)
 
bool CheckGeometryValid (const QByteArray &)
 
QIcon GetApplicationIcon ()
 
QPixmap GetApplicationPixmap (const int size=128)
 

Detailed Description

Namespace with static methods for working with GUI.

Function Documentation

◆ CheckGeometryValid()

bool GuiHelpers::CheckGeometryValid ( const QByteArray & geometry)

Check whether the geometry value is valid.

Parameters
geometryThe geometry value for checking.
Returns
The geometry value check result.
Return values
trueThe geometry value is valid.
falseThe geometry value is not valid.

◆ GetApplicationIcon()

QIcon GuiHelpers::GetApplicationIcon ( )

Get the application icon from the installed theme or form the included resource.

Returns
The application icon.

◆ GetApplicationPixmap()

QPixmap GuiHelpers::GetApplicationPixmap ( const int size = 128)

Get the application icon from the installed theme or form the included resource as a pixmap.

Parameters
sizeThe desired icon size. Default - 128 px.
Returns
The application icon as a pixmap.

◆ GetDefaultFormPosition()

QRect GuiHelpers::GetDefaultFormPosition ( const QWidget * widget)

Get the default form position at the center of the screen.

Parameters
widgetWidget instance.
Returns
Form position at the center of the screen.