991
Discussion | Обсуждение / Re: Вопросы по 1.3.1
« on: January 20, 2016, 02:07:14 PM »
GraninDm, Пожелания приняли к сведению
Элемент можно выделить и двигать стрелками: с Ctrl меняется положение, с Shift размер.
![Smiley :)](https://limereport.ru/forum/Smileys/default/smiley.gif)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Хотелось бы загрузку и сохранение шаблонов из/в строку.
Удобно если нужно загружать шаблоны из БД, например.
bool loadFromByteArray(QByteArray *data);
для бд можно её использовать $S{
var selectedItemBegin = '<span style="background:black; color:red; font-weight:bold ">';
var selectedItemEnd = '</span>';
var customer = "";
if ($D{customers.CustomerID}=="ANTON"){
customer = selectedItemBegin+$D{customers.CustomerID}+selectedItemEnd;
} else {
customer = $D{customers.CustomerID};
}
'<span> Customer: </span>'+customer;
}
$S{
var color = new QColor('#DEB887');
var font = new QFont('Times New Roman',12,false,true);
if ( $D{customers.CustomerID}=="ANTON"){
THIS.backgroundColor = color;
THIS.font = font;
THIS.fontColor = QColor('red');
}
$D{customers.CustomerID}
}