示例#1
0
void SessionForm::Reload(int x)
{
    /// \todo TRANSLATE ME
    WikiSite *site = Configuration::HuggleConfiguration->Projects.at(x);
    this->ui->label_2->setText("You are logged in as " + Configuration::HuggleConfiguration->SystemConfig_Username + "\n" +
                               "SSL: " + Generic::Bool2String(Configuration::HuggleConfiguration->SystemConfig_UsingSSL) + "\n" +
                               "RC feed: " + site->Provider->ToString() + "\n" +
                               "MediaWiki: " + site->MediawikiVersion.ToString());
    this->ui->listWidget->clear();
    foreach (QString p, site->GetProjectConfig()->Rights)
        this->ui->listWidget->addItem(p);
}
示例#2
0
void SessionForm::Reload(int x)
{
    /// \todo TRANSLATE ME
    WikiSite *site = Configuration::HuggleConfiguration->Projects.at(x);
    this->ui->label_2->setText("You are logged in as " + Configuration::HuggleConfiguration->SystemConfig_Username + "\n" +
                               "SSL: " + Generic::Bool2String(Configuration::HuggleConfiguration->SystemConfig_UsingSSL) + "\n" +
                               "RC feed: " + site->Provider->ToString());
    int xx=0;
    this->ui->listWidget->clear();
    while (xx < site->GetProjectConfig()->Rights.count())
    {
        this->ui->listWidget->addItem(site->GetProjectConfig()->Rights.at(xx));
        xx++;
    }
}