HAL  v4.5.0-131-gda71a6012
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::QtCompat Namespace Reference

Functions

QRect desktopAvailableGeometry ()
 
QRect widgetAvailableGeometry (QWidget *widget)
 
QRect desktopScreenGeometry ()
 
uint qHashPoint (const QPoint &p)
 
void styleOptionInit (QStyleOption &opt, QWidget *widget)
 
void setMarginWidth (QLayout *layout, int marginWidth)
 
QString dateToLocaleString (const QDateTime &dt)
 
template<typename T >
QSet< T > listToSet (const QList< T > &list)
 
template<typename T >
QList< T > setToList (const QSet< T > &cset)
 
template<typename T >
QVector< T > listToVector (const QList< T > &list)
 
template<typename T >
QVector< T > stdVectorToVector (const std::vector< T > &vec)
 

Function Documentation

◆ dateToLocaleString()

QString hal::QtCompat::dateToLocaleString ( const QDateTime dt)

◆ desktopAvailableGeometry()

QRect hal::QtCompat::desktopAvailableGeometry ( )

◆ desktopScreenGeometry()

QRect hal::QtCompat::desktopScreenGeometry ( )

Definition at line 19 of file hal_qt_compat.cpp.

References QGuiApplication::primaryScreen.

Referenced by hal::SettingsManager::mainWindowSize().

◆ listToSet()

template<typename T >
QSet<T> hal::QtCompat::listToSet ( const QList< T > &  list)

Definition at line 55 of file hal_qt_compat.h.

References QList::constBegin(), QList::constEnd(), and QSet::fromList().

◆ listToVector()

template<typename T >
QVector<T> hal::QtCompat::listToVector ( const QList< T > &  list)

Definition at line 73 of file hal_qt_compat.h.

References QList::constBegin(), QList::constEnd(), and QVector::fromList().

◆ qHashPoint()

uint hal::QtCompat::qHashPoint ( const QPoint p)

Definition at line 37 of file hal_qt_compat.cpp.

References hal::qHash().

Referenced by hal::qHash().

◆ setMarginWidth()

void hal::QtCompat::setMarginWidth ( QLayout layout,
int  marginWidth 
)

◆ setToList()

template<typename T >
QList<T> hal::QtCompat::setToList ( const QSet< T > &  cset)

Definition at line 64 of file hal_qt_compat.h.

References QSet::constBegin(), and QSet::constEnd().

◆ stdVectorToVector()

template<typename T >
QVector<T> hal::QtCompat::stdVectorToVector ( const std::vector< T > &  vec)

Definition at line 82 of file hal_qt_compat.h.

References QVector::fromStdVector().

◆ styleOptionInit()

void hal::QtCompat::styleOptionInit ( QStyleOption opt,
QWidget widget 
)

◆ widgetAvailableGeometry()

QRect hal::QtCompat::widgetAvailableGeometry ( QWidget widget)

Definition at line 28 of file hal_qt_compat.cpp.

References QScreen::availableGeometry, and QWidget::screen().

Referenced by hal::gui_utility::ensureOnScreen().