Subversion Repositories tpanel

Rev

Rev 264 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 264 Rev 368
Line 105... Line 105...
105
    ui->label_Prompt->setText(prompt.c_str());
105
    ui->label_Prompt->setText(prompt.c_str());
106
 
106
 
107
    if (!mPrivate)
107
    if (!mPrivate)
108
        ui->label_TextLine->setText(init.c_str());
108
        ui->label_TextLine->setText(init.c_str());
109
    else
109
    else
110
        ui->label_TextLine->setText(fillString('*', mText.length()).c_str());
110
        ui->label_TextLine->setText(fillString('*', (int)mText.length()).c_str());
111
}
111
}
112
 
112
 
113
TQKeyboard::~TQKeyboard()
113
TQKeyboard::~TQKeyboard()
114
{
114
{
115
    DECL_TRACER("TQKeyboard::~TQKeyboard()");
115
    DECL_TRACER("TQKeyboard::~TQKeyboard()");
Line 238... Line 238...
238
        mText = mText.substr(0, mMaxLen);
238
        mText = mText.substr(0, mMaxLen);
239
 
239
 
240
    if (!mPrivate)
240
    if (!mPrivate)
241
        ui->label_TextLine->setText(mText.c_str());
241
        ui->label_TextLine->setText(mText.c_str());
242
    else
242
    else
243
        ui->label_TextLine->setText(fillString('*', mText.length()).c_str());
243
        ui->label_TextLine->setText(fillString('*', (int)mText.length()).c_str());
244
 
244
 
245
    if (getSystemSoundState())
245
    if (getSystemSoundState())
246
    {
246
    {
247
        std::string snd = getTouchFeedbackSound();
247
        std::string snd = getTouchFeedbackSound();
248
        MSG_DEBUG("Playing sound: " << snd);
248
        MSG_DEBUG("Playing sound: " << snd);
Line 279... Line 279...
279
        mText = mText.substr(0, mMaxLen);
279
        mText = mText.substr(0, mMaxLen);
280
 
280
 
281
    if (!mPrivate)
281
    if (!mPrivate)
282
        ui->label_TextLine->setText(mText.c_str());
282
        ui->label_TextLine->setText(mText.c_str());
283
    else
283
    else
284
        ui->label_TextLine->setText(fillString('*', mText.length()).c_str());
284
        ui->label_TextLine->setText(fillString('*', (int)mText.length()).c_str());
285
}
285
}
286
 
286
 
287
int TQKeyboard::scale(int value)
287
int TQKeyboard::scale(int value)
288
{
288
{
289
    if (value <= 0 || mScaleFactor == 1.0)
289
    if (value <= 0 || mScaleFactor == 1.0)