Changeset 385:5f0e735f46e1 in SMSSender for gateways/Schoolnet/gui/ui/widgets/questionbox.h


Ignore:
Timestamp:
Apr 16, 2014 11:29:11 AM (5 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
separation-frontend-backend
Message:
  • Fixes crash when switching to another question in the Schoolnet send-integration and then providing the answer for it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gateways/Schoolnet/gui/ui/widgets/questionbox.h

    r382 r385  
    3636
    3737public:
    38     QuestionBox(const Question &question, QWidget *parent);
     38    QuestionBox(const Question *question, QWidget *parent);
    3939    ~QuestionBox();
    4040
    4141    enum DialogCode { NextQuestion = QDialog::Accepted+1 };
    4242
    43     void loadQuestion(const Question &question);
     43    void loadQuestion(const Question *question);
    4444
    4545signals:
    46     void answerProvided(Answer *answer);
     46    void answerProvided(DeepThought::Answer *answer);
    4747    void rejected();
    4848    void nextQuestionRequested();
     
    5151    ::Ui::QuestionBoxClass ui; // TODO: Fix namespace
    5252
    53     const Question &m_question;
     53    const Question *m_question;
    5454
    5555    QLabel *m_hintLabel;
Note: See TracChangeset for help on using the changeset viewer.