BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines class CLASS? More...
Go to the source code of this file.
Namespaces | |
ModelView | |
materialitems.h Collection of materials to populate MaterialModel. | |
ModelView::Utils | |
Collection of various widget-related utils. | |
Functions | |
MVVM_VIEW_EXPORT QString | ModelView::Utils::ClickableText (const QString &text, const QString &tag={}) |
Returns text wrapped into 'href' tag to provide clickable links in QLabel. More... | |
MVVM_VIEW_EXPORT QStringList | ModelView::Utils::deserialize (const QByteArray &byteArray) |
Converts byte array to vector of strings. More... | |
MVVM_VIEW_EXPORT QMainWindow * | ModelView::Utils::FindMainWindow () |
Finds main window. More... | |
MVVM_VIEW_EXPORT std::vector< std::string > | ModelView::Utils::fromStringList (const QStringList &string_list) |
Converts vector of strings to QStringList. More... | |
MVVM_VIEW_EXPORT int | ModelView::Utils::HeightOfLetterM () |
Returns height of the letter 'M' deduced from current font metrics. More... | |
MVVM_VIEW_EXPORT bool | ModelView::Utils::IsLinuxHost () |
Returns true if it is Linux. More... | |
MVVM_VIEW_EXPORT bool | ModelView::Utils::IsMacHost () |
Returns true if it is Mac. More... | |
MVVM_VIEW_EXPORT bool | ModelView::Utils::IsWindowsHost () |
Returns true if it is Windows. More... | |
MVVM_VIEW_EXPORT QString | ModelView::Utils::ProjectWindowTitle (const QString &project_dir, bool is_modified) |
Returns a title composed from last part of project path, and is_modified flag. More... | |
MVVM_VIEW_EXPORT QColor | ModelView::Utils::RandomColor () |
Returns random color. More... | |
MVVM_VIEW_EXPORT std::string | ModelView::Utils::RandomNamedColor () |
Returns the name of random color. More... | |
MVVM_VIEW_EXPORT void | ModelView::Utils::ScaleLabelFont (QLabel *label, double scale) |
Set label's font size to system font size scaled by given factor. More... | |
MVVM_VIEW_EXPORT QByteArray | ModelView::Utils::serialize (const QStringList &data) |
Converts vector of strings to byte array. More... | |
MVVM_VIEW_EXPORT QSize | ModelView::Utils::SizeOfLetterM () |
Returns size corresponding to actual size of letter M basing on current font metrics. More... | |
MVVM_VIEW_EXPORT int | ModelView::Utils::SystemPointSize () |
Returns size in points of default system font. More... | |
MVVM_VIEW_EXPORT QStringList | ModelView::Utils::toStringList (const std::vector< std::string > &vec) |
Converts vector of strings to QStringList. More... | |
MVVM_VIEW_EXPORT int | ModelView::Utils::WidthOfLetterM () |
Returns width of the letter 'M' deduced from current font metrics. More... | |
MVVM_VIEW_EXPORT QString | ModelView::Utils::WithTildeHomePath (const QString &path) |
Returns a string where Linux path to the file is striped using '~/'. More... | |
Defines class CLASS?
Definition in file widgetutils.h.