initial port for Cevo game in C++ (libs)
This commit is contained in:
commit
8436242032
375 files changed
+46282
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#include "Dpi/DpiStdCtrls.h"
|
||||
|
||||
namespace Dpi {
|
||||
|
||||
QStringList Memo::lines() const
|
||||
{
|
||||
return toPlainText().split(QLatin1Char('\n'));
|
||||
}
|
||||
|
||||
void Memo::setLines(const QStringList &value)
|
||||
{
|
||||
setPlainText(value.join(QLatin1Char('\n')));
|
||||
}
|
||||
|
||||
QStringList ListBox::items() const
|
||||
{
|
||||
QStringList result;
|
||||
for (int i = 0; i < count(); ++i)
|
||||
result << item(i)->text();
|
||||
return result;
|
||||
}
|
||||
|
||||
void ListBox::setItems(const QStringList &value)
|
||||
{
|
||||
clear();
|
||||
addItems(value);
|
||||
}
|
||||
|
||||
} // namespace Dpi
|
||||
Reference in new issue
Block a user