Commit 35e28495 authored by Jan Möbius's avatar Jan Möbius

Tried to make valgrind happy

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3440 383ad7c9-94d9-4d36-a494-682f7c89f535
parent be08d8bf
......@@ -12,12 +12,12 @@
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
//
// OpenFlipper is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenFlipper. If not, see <http://www.gnu.org/licenses/>.
//
......@@ -48,11 +48,14 @@
// -------------------- Qt
//== IMPLEMENTATION ==========================================================
//== IMPLEMENTATION ==========================================================
void CoreWidget::slotAddToolbar(QToolBar* _toolbar) {
addToolBar( _toolbar );
_toolbar->setObjectName("Toolbar" + QString::number(toolbarCount_++));
int newNumber = toolbarCount_;
toolbarCount_++;
QString number = QString::number(newNumber);
_toolbar->setObjectName("Toolbar" + number);
}
void CoreWidget::slotRemoveToolbar(QToolBar* _toolbar) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment