void Launcher::init() { _arguments = readArguments(_argc, _argv); prepareSettings(); QCoreApplication::setApplicationName(qsl("TelegramDesktop")); #ifndef OS_MAC_OLD QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true); #endif // OS_MAC_OLD initHook(); }
OfxhClip::OfxhClip( const OfxhClipDescriptor& desc ) : attribute::OfxhAttribute( desc ) { /// extra properties for the instance, these are fetched from the host /// via a get hook and some virtuals static const property::OfxhPropSpec clipInstanceStuffs[] = { { kOfxImageClipPropConnected, property::ePropTypeInt, 1, true, "0" }, { 0 }, }; // properties that are needed in an Instance but not a Descriptor getEditableProperties().addProperties( clipInstanceStuffs ); initHook( clipInstanceStuffs ); /// we are an instance, we need to reset the props to read only for( property::PropertyMap::iterator i = getEditableProperties().getMap().begin(), iEnd = getEditableProperties().getMap().end(); i != iEnd; ++i ) { i->second->setPluginReadOnly( false ); } }
void MainWindow::init() { Expects(!windowHandle()); createWinId(); initHook(); updateWindowIcon(); connect(windowHandle(), &QWindow::activeChanged, this, [this] { handleActiveChanged(); }, Qt::QueuedConnection); connect(windowHandle(), &QWindow::windowStateChanged, this, [this](Qt::WindowState state) { handleStateChanged(state); }); _positionUpdatedTimer->setSingleShot(true); connect(_positionUpdatedTimer, SIGNAL(timeout()), this, SLOT(savePositionByTimer())); updatePalette(); if ((_title = Platform::CreateTitleWidget(this))) { _title->init(); } initSize(); updateUnreadCounter(); }