void CommentsView::reloadComments() { hideComments(); removeComments(); loadComments(); showComments(); }
void PostedItem::setup() { /* Invoke the Qt Designer generated object setup routine */ ui = new Ui::PostedItem; ui->setupUi(this); setAttribute(Qt::WA_DeleteOnClose, true); mInFill = false; /* clear ui */ ui->titleLabel->setText(tr("Loading")); ui->dateLabel->clear(); ui->fromLabel->clear(); ui->siteLabel->clear(); ui->newCommentLabel->hide(); ui->commLabel->hide(); /* general ones */ connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(removeItem())); /* specific */ connect(ui->readAndClearButton, SIGNAL(clicked()), this, SLOT(readAndClearItem())); connect(ui->commentButton, SIGNAL( clicked()), this, SLOT(loadComments())); connect(ui->voteUpButton, SIGNAL(clicked()), this, SLOT(makeUpVote())); connect(ui->voteDownButton, SIGNAL(clicked()), this, SLOT( makeDownVote())); connect(ui->readButton, SIGNAL(toggled(bool)), this, SLOT(readToggled(bool))); ui->clearButton->hide(); ui->readAndClearButton->hide(); ui->frame_notes->hide(); }
void NoteCommentsPrivate::onTokenAcquired(const QString& strToken) { if (strToken.isEmpty()) return; loadComments(strToken); }
void GxsChannelPostItem::setup() { /* Invoke the Qt Designer generated object setup routine */ ui = new Ui::GxsChannelPostItem; ui->setupUi(this); setAttribute(Qt::WA_DeleteOnClose, true); mInFill = false; mCloseOnRead = false; /* clear ui */ ui->titleLabel->setText(tr("Loading")); ui->subjectLabel->clear(); ui->datetimelabel->clear(); ui->filelabel->clear(); ui->newCommentLabel->hide(); ui->commLabel->hide(); /* general ones */ connect(ui->expandButton, SIGNAL(clicked()), this, SLOT(toggle())); connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(removeItem())); /* specific */ connect(ui->readAndClearButton, SIGNAL(clicked()), this, SLOT(readAndClearItem())); connect(ui->unsubscribeButton, SIGNAL(clicked()), this, SLOT(unsubscribeChannel())); connect(ui->downloadButton, SIGNAL(clicked()), this, SLOT(download())); // HACK FOR NOW. connect(ui->commentButton, SIGNAL(clicked()), this, SLOT(loadComments())); connect(ui->playButton, SIGNAL(clicked()), this, SLOT(play(void))); connect(ui->copyLinkButton, SIGNAL(clicked()), this, SLOT(copyMessageLink())); connect(ui->readButton, SIGNAL(toggled(bool)), this, SLOT(readToggled(bool))); // hide voting buttons, backend is not implemented yet ui->voteUpButton->hide(); ui->voteDownButton->hide(); //connect(ui-> voteUpButton, SIGNAL(clicked()), this, SLOT(makeUpVote())); //connect(ui->voteDownButton, SIGNAL(clicked()), this, SLOT(makeDownVote())); ui->scoreLabel->hide(); ui->downloadButton->hide(); ui->playButton->hide(); ui->warn_image_label->hide(); ui->warning_label->hide(); ui->titleLabel->setMinimumWidth(100); ui->subjectLabel->setMinimumWidth(100); ui->warning_label->setMinimumWidth(100); ui->mainFrame->setProperty("state", ""); QPalette palette = ui->mainFrame->palette(); palette.setColor(ui->mainFrame->backgroundRole(), COLOR_NORMAL); ui->mainFrame->setPalette(palette); ui->expandFrame->hide(); }
void CommentsView::reloadComments() { qDebug() << "Reloading"; hideComments(); removeComments(); loadComments(); showComments(); }
void PostedItem::setup() { setupUi(this); setAttribute(Qt::WA_DeleteOnClose, true); connect(commentButton, SIGNAL( clicked()), this, SLOT(loadComments())); connect(voteUpButton, SIGNAL(clicked()), this, SLOT(makeUpVote())); connect(voteDownButton, SIGNAL(clicked()), this, SLOT( makeDownVote())); }
/** Constructor */ PostedItem::PostedItem(PostedHolder *postHolder, const RsPostedPost &post) :QWidget(NULL), mPostHolder(postHolder), mPost(post) { setupUi(this); setAttribute ( Qt::WA_DeleteOnClose, true ); setContent(mPost); connect( commentButton, SIGNAL( clicked() ), this, SLOT( loadComments() ) ); connect( voteUpButton, SIGNAL(clicked()), this, SLOT(makeUpVote())); connect( voteDownButton, SIGNAL(clicked()), this, SLOT( makeDownVote())); return; }