Subversion Repositories tpanel

Rev

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

Rev 437 Rev 439
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (C) 2023 by Andreas Theofilu <andreas@theosys.at>
2
 * Copyright (C) 2023, 2024 by Andreas Theofilu <andreas@theosys.at>
3
 *
3
 *
4
 * This program is free software; you can redistribute it and/or modify
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
7
 * (at your option) any later version.
Line 148... Line 148...
148
        mEdit->setText(QString::fromStdString(text));
148
        mEdit->setText(QString::fromStdString(text));
149
 
149
 
150
    mChanged = false;
150
    mChanged = false;
151
}
151
}
152
 
152
 
-
 
153
void TQEditLine::setPlaceholderText(string& text)
-
 
154
{
-
 
155
    DECL_TRACER("TQEditLine::setPlaceholderText(string& text)");
-
 
156
 
-
 
157
    if (mMultiline && mTextArea)
-
 
158
        mTextArea->setPlaceholderText(QString::fromStdString(text));
-
 
159
    else if (!mMultiline && mEdit)
-
 
160
        mEdit->setPlaceholderText(QString::fromStdString(text));
-
 
161
}
-
 
162
 
153
void TQEditLine::setObjectName(const string& name)
163
void TQEditLine::setObjectName(const string& name)
154
{
164
{
155
    DECL_TRACER("TQEditLine::setObjectName(const string& name)");
165
    DECL_TRACER("TQEditLine::setObjectName(const string& name)");
156
 
166
 
157
    if (name.empty())
167
    if (name.empty())