~neon/plasmate/frameworks

« back to all changes in this revision

Viewing changes to plasmate/plugins/savesystemview/qml/CommitsView/BranchView/NewBranchView.qml

  • Committer: Giorgos Tsiapaliokas
  • Date: 2015-03-14 12:58:48 UTC
  • mfrom: (972.1.19)
  • Revision ID: git-v1:7b24cb2599e2bea0612cb492d2395bb6c44722ed
Merge branch 'review_savesystem_updated' into frameworks

REVIEW: 121206

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright 2014 Giorgos Tsiapaliokas <giorgos.tsiapaliokas@kde.org>
 
3
 
 
4
    This library is free software; you can redistribute it and/or
 
5
    modify it under the terms of the GNU Library General Public
 
6
    License as published by the Free Software Foundation; either
 
7
    version 2 of the License, or (at your option) any later version.
 
8
 
 
9
    This library is distributed in the hope that it will be useful,
 
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
    Library General Public License for more details.
 
13
 
 
14
    You should have received a copy of the GNU Library General Public License
 
15
    along with this library; see the file COPYING.LIB.  If not, write to
 
16
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
    Boston, MA 02110-1301, USA.
 
18
*/
 
19
 
 
20
import QtQuick 2.3
 
21
import QtQuick.Controls 1.2 as QtControls
 
22
import QtQuick.Layouts 1.1 as QtLayouts
 
23
 
 
24
InputBranchView {
 
25
    title:  i18n("You are about to create a new branch")
 
26
    placeholderText: i18n("New branch name")
 
27
    buttonText: i18n("Create New Branch")
 
28
 
 
29
    onDoWork: {
 
30
        console.log(input)
 
31
        git.branchesModel.createBranch(git.branchesModel.currentBranch, input)
 
32
        stackView.pop()
 
33
    }
 
34
}
 
35