Example #1
0
static HostLineEdit *LocalServerIP6()
{
    HostLineEdit *gc = new HostLineEdit("BackendServerIP6");
    gc->setLabel(QObject::tr("IPv6 address"));
    gc->setValue("::1");
    gc->setHelpText(QObject::tr("Enter the IPv6 address of this machine. "
                    "Use an externally accessible address (ie, not "
                    "::1) if you are going to be running a frontend "
                    "on a different machine than this one."));
#if defined(QT_NO_IPV6)
    gc->setEnabled(false);
#else
    if (ServerPool::DefaultListenIPv6().isEmpty())
        gc->setEnabled(false);
#endif
    return gc;
}
Example #2
0
/*!
 \brief Settings for Importing
 \param enable True if password has been entered
*/
ImportSettings::ImportSettings(bool enable) : VerticalConfigurationGroup()
{
    setLabel(tr("Import"));
    setEnabled(enable);
    
    HostLineEdit *script = new HostLineEdit("GalleryImportCmd", true);
    script->setLabel(tr("Import Command"));
    script->setHelpText(tr("Command/script that can be run from the menu. "
                           "\n%TMPDIR% will be replaced by a new temporary directory, "
                           "which the import dialog will show automatically. The "
                           "directory will be removed when Gallery exits."));
    
    script->setEnabled(enable);
    addChild(script);
}